An endpoint identifies the final destination of a message. An endpoint is defined either by the Endpoint class (if you use a provider) or by the URLEndpoint class (if you don’t use a provider).)
You can initialize an endpoint by calling its constructor. The following code uses a constructor to create a URLEndpoint.
myEndpoint = new URLEndpoint("http://somehost/myServlet");
To address a message to an endpoint, specify the endpoint as a parameter to the SOAPConnection.call method, which you use to send a SOAP message.