Java Reference
In-Depth Information
call. Pass the SOAP request message and the endpoint you want to invoke to the
call
method
on your connection object, and then wait for it to return a SOAP response.
Overall, this is very simple and straightforward to use. Here are a couple of minor usage notes:
▪ The endpoint URL passed to the
connection.call
method can be either a string or a
java.net.URL
.
▪ Don't forget to close the connection when you're done with it, as you would a JDBC con-
nection. You can close the connection right after you call it and still use the response it
returns later.
NOTE
Implementing the
SOAPConnection
class is optional; if your implementation does not support it,
calling
SOAPConnectionFactory.newInstance
will throw an
UnsupportedOperationEx-
ception
. Sun's SE 6 VM supports it.