Package org.apache.axis2.saaj
Class SOAPConnectionImpl
java.lang.Object
jakarta.xml.soap.SOAPConnection
org.apache.axis2.saaj.SOAPConnectionImpl
- All Implemented Interfaces:
AutoCloseable
public class SOAPConnectionImpl
extends jakarta.xml.soap.SOAPConnection
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPMessageSends the given message to the specified endpoint and blocks until it has returned the response.voidclose()Closes thisSOAPConnectionobject.jakarta.xml.soap.SOAPMessageoverrided SOAPConnection's get() methodMethods inherited from class jakarta.xml.soap.SOAPConnection
getConnectTimeout, getReadTimeout, setConnectTimeout, setReadTimeout
-
Method Details
-
call
public jakarta.xml.soap.SOAPMessage call(jakarta.xml.soap.SOAPMessage request, Object endpoint) throws jakarta.xml.soap.SOAPException Sends the given message to the specified endpoint and blocks until it has returned the response.- Specified by:
callin classjakarta.xml.soap.SOAPConnection- Parameters:
request- theSOAPMessageobject to be sentendpoint- anObjectthat identifies where the message should be sent. It is required to support Objects of typejava.lang.String,java.net.URL, and when JAXM is presentjavax.xml.messaging.URLEndpoint- Returns:
- the
SOAPMessageobject that is the response to the message that was sent - Throws:
jakarta.xml.soap.SOAPException- if there is a SOAP error, or this SOAPConnection is already closed
-
close
public void close() throws jakarta.xml.soap.SOAPExceptionCloses thisSOAPConnectionobject.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classjakarta.xml.soap.SOAPConnection- Throws:
jakarta.xml.soap.SOAPException- if there is a SOAP error, or this SOAPConnection is already closed
-
get
overrided SOAPConnection's get() method- Overrides:
getin classjakarta.xml.soap.SOAPConnection- Throws:
jakarta.xml.soap.SOAPException
-