JwsContext.setCallbackLocation(URL) Method

Sets the URL that will be used for callbacks to the client during the current conversation.

Syntax

public void setCallbackLocation(URL url)

Parameters

url

The url to use for callbacks.

Return Value

None.

Exceptions

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.

Remarks

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.

Related Topics

JwsContext.getCallbackLocation() Method

JwsContext.setCallbackLocation(URL) Method