@ThreadSafe public class HttpSOAPClient extends Object implements SOAPClient
InTransport or
OutTransport. Therefore any SecurityPolicy which operates on these object
can not be used with this client.SOAPClient.SOAPRequestParameters| コンストラクタと説明 |
|---|
HttpSOAPClient(org.apache.commons.httpclient.HttpClient client,
ParserPool parser)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected org.apache.commons.httpclient.methods.PostMethod |
createPostMethod(String endpoint,
HttpSOAPRequestParameters requestParams,
Envelope message)
Creates the post method used to send the SOAP request.
|
protected org.apache.commons.httpclient.methods.RequestEntity |
createRequestEntity(Envelope message,
Charset charset)
Creates the request entity that makes up the POST message body.
|
protected void |
evaluateSecurityPolicy(SOAPMessageContext messageContext)
Evaluates the security policy associated with the given message context.
|
protected void |
processFaultResponse(org.apache.commons.httpclient.methods.PostMethod httpMethod,
SOAPMessageContext messageContext)
Processes a SOAP fault, as determined by an HTTP 500 status code, response.
|
protected void |
processSuccessfulResponse(org.apache.commons.httpclient.methods.PostMethod httpMethod,
SOAPMessageContext messageContext)
Processes a successful, as determined by an HTTP 200 status code, response.
|
void |
send(String endpoint,
SOAPMessageContext messageContext)
Sends a message and waits for a response.
|
protected Envelope |
unmarshallResponse(InputStream responseStream)
Unmarshalls the incoming response from a POST request.
|
public HttpSOAPClient(org.apache.commons.httpclient.HttpClient client,
ParserPool parser)
client - Client used to make outbound HTTP requests. This client SHOULD employ a
MultiThreadedHttpConnectionManager and may be shared with other
objects.parser - pool of XML parsers used to parse incoming responsespublic void send(String endpoint, SOAPMessageContext messageContext) throws SOAPException, SecurityException
send インタフェース内 SOAPClientendpoint - the endpoint to which to send the messagemessageContext - the message context containing the outbound SOAP messageSOAPClientException - thrown if there is a problem sending the message or receiving the response or if the
response is a SOAP faultSecurityException - thrown if the response does not meet any security policy associated with the message
contextSOAPExceptionprotected org.apache.commons.httpclient.methods.PostMethod createPostMethod(String endpoint, HttpSOAPRequestParameters requestParams, Envelope message) throws SOAPClientException
endpoint - endpoint to which the message is sentrequestParams - HTTP request parametersmessage - message to be sentSOAPClientException - thrown if the message could not be marshalledprotected org.apache.commons.httpclient.methods.RequestEntity createRequestEntity(Envelope message, Charset charset) throws SOAPClientException
message - message to be sentcharset - character set used for the messageSOAPClientException - thrown if the message could not be marshalledprotected void processSuccessfulResponse(org.apache.commons.httpclient.methods.PostMethod httpMethod,
SOAPMessageContext messageContext)
throws SOAPClientException
httpMethod - the HTTP method used to send the request and receive the responsemessageContext - current messages contextSOAPClientException - thrown if there is a problem reading the response from the PostMethodprotected void processFaultResponse(org.apache.commons.httpclient.methods.PostMethod httpMethod,
SOAPMessageContext messageContext)
throws SOAPClientException,
SOAPFaultException
httpMethod - the HTTP method used to send the request and receive the responsemessageContext - current messages contextSOAPClientException - thrown if the response can not be read from the PostMethodSOAPFaultException - an exception containing the SOAP faultprotected Envelope unmarshallResponse(InputStream responseStream) throws SOAPClientException
responseStream - input stream bearing the responseSOAPClientException - thrown if the incoming response can not be unmarshalled into an Envelopeprotected void evaluateSecurityPolicy(SOAPMessageContext messageContext) throws SOAPClientException
messageContext - current message contextSOAPClientException - thrown if there is a problem resolving or evaluating a security policyCopyright © 2012. All Rights Reserved.