| java.lang.Object javax.xml.soap.SOAPConnection
All known Subclasses: org.apache.axis2.saaj.SOAPConnectionImpl,
SOAPConnection | abstract public class SOAPConnection (Code) | | A point-to-point connection that a client can use for sending messages directly to a remote party
(represented by a URL, for instance).
A client can obtain a SOAPConnection object simply by calling the following static
method.
SOAPConnection con = SOAPConnection.newInstance();
A SOAPConnection object can be used to send messages directly to a URL following the
request/response paradigm. That is, messages are sent using the method call , which
sends the message and then waits until it gets a reply.
|
Method Summary | |
abstract public SOAPMessage | call(SOAPMessage request, Object endpoint) Sends the given message to the specified endpoint and blocks until it has returned the
response.
Parameters: request - the SOAPMessage object to be sent Parameters: endpoint - an Object that identifies where the message should be sent. | abstract public void | close() Closes this SOAPConnection object. | public SOAPMessage | get(Object obj) Gets a message from a specific endpoint and blocks until it receives,
Parameters: to - - an Object that identifies where the request should be sent. |
SOAPConnection | public SOAPConnection()(Code) | | |
call | abstract public SOAPMessage call(SOAPMessage request, Object endpoint) throws SOAPException(Code) | | Sends the given message to the specified endpoint and blocks until it has returned the
response.
Parameters: request - the SOAPMessage object to be sent Parameters: endpoint - an Object that identifies where the message should be sent. Itis required to support Objects of type java.lang.String ,java.net.URL , and when JAXM is present javax.xml.messaging.URLEndpoint the SOAPMessage object that is the response to the message that wassent throws: SOAPException - if there is a SOAP error |
get | public SOAPMessage get(Object obj) throws SOAPException(Code) | | Gets a message from a specific endpoint and blocks until it receives,
Parameters: to - - an Object that identifies where the request should be sent. Objects of typejava.lang.String and java.net.URL must be supported. the SOAPMessage object that is the response to the get message request throws: SOAPException - - if there is a SOAP error |
|
|