JwsContext.setCallbackLocation(URL) Method
Sets the URL that will be used for callbacks to the client during the current conversation.
public void setCallbackLocation(URL url)
url
The url to use for callbacks.
None.
MalformedURLException
Thrown if a malformed URL is provided. Either no legal protocol could be found in the specification string or the string could not be parsed.
The callback location is typically provided by the client in the callbackLocation conversation start SOAP header, but may be set explicitly using this method. The callback location must be set before attempting to send a callback to the client. JwsContext.getCallbackLocation() may be used to retrieve the URL set by this method or to discover the callback URL if it was set via the SOAP header.
Credentials may be provided as part of the URL (if supported by the scheme) or by using the JwsContext.setCallbackUsername() and JwsContext.setCallbackPassword() methods.