static clearSOAPHeaders(port
:
Object)
:
void
Removes all SOAP header elements from the port's request context.
static createHolder(element
:
Object)
:
Object
Creates an javax.xml.ws.Holder instance that wraps the specified element.
static getProperty(key
:
String, port
:
Object)
:
Object
Returns the value of the SOAP request property using the specified key on a port returned from one of the WebReference2 getService methods.
static getResponseProperty(key
:
String, port
:
Object)
:
Object
Returns the property value using the specified key and on a port returned from one of the WebReference2 getService methods.
static isAllowChunking(port
:
Object)
:
boolean
Returns true if the HTTP request may be chunked, false otherwise
static setAllowChunking(port
:
Object, allow
:
boolean)
:
void
Indicate that HTTP chunked Transfer-Encoding may be used.
static setProperty(key
:
String, value
:
Object, port
:
Object)
:
void
Set the SOAP request property using the specified key and value on a port returned from one of the WebReference2 getService() methods.
static setRequestTimeout(timeoutInMilliseconds
:
Number, port
:
Object)
:
void
Sets the read timeout value for a request made on the specified port.
static setWSSecurityConfig(port
:
Object, requestConfigMap
:
Object, responseConfigMap
:
Object)
:
void
Set the WS-Security configuration for the request and response based on the constants defined (see above).
addSOAPHeader
static
addSOAPHeader(port
:
Object, xml
:
Object, mustUnderstand
:
boolean, actor
:
String)
:
void
Adds a header element to the SOAP Header. Each header element should be XML and
it should typically contain a namespace URI.
Parameters:
port
-
the port.
xml
-
the header element XML. The XML should contain a namespace URI.
mustUnderstand
-
directs target endpoint to validate payload.
actor
-
an URI that identifies that intended recipient of this header element.
addSOAPHeader
static
addSOAPHeader(port
:
Object, xml
:
String, mustUnderstand
:
boolean, actor
:
String)
:
void
Adds a header element to the SOAP Header. Each header element should be XML and
it should typically contain a namespace URI.
Parameters:
port
-
the port.
xml
-
the header element XML as a String. The XML should contain a namespace URI.
mustUnderstand
-
directs target endpoint to validate payload.
actor
-
an URI that identifies that intended recipient of this header element.
clearSOAPHeaders
static
clearSOAPHeaders(port
:
Object)
:
void
Removes all SOAP header elements from the port's request context.
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
createHolder
Creates an javax.xml.ws.Holder instance that wraps the specified element. When a WSDL operation is
defined to have an input and output message using the same type, the operation may require the operation's
object to be wrapped in a holder.
Parameters:
element
-
the element to be wrapped in the Holder.
getConnectionTimeout
Returns the connection timeout value for the port.
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
Returns:
the connection timeout value.
getHTTPRequestHeader
Returns an HTTP request header property value using the specified key. Null is returned
if the key does not represent an HTTP header property.
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
key
-
the header property key.
Returns:
an HTTP request header property value using the specified key or null.
getProperty
Returns the value of the SOAP request property using the specified key on a port
returned from one of the WebReference2 getService methods. The property
keys are defined as constants in
Port.
Parameters:
key
-
the key to use.
port
-
the port on which the property is set.
Returns:
the property using the specified key and port.
getRequestTimeout
Returns the read timeout value for a request made on the specified port.
If the request exceeds the timeout value, an error is thrown.
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
Returns:
the request timeout value for the port.
getResponseProperty
Returns the property value using the specified key and on a port returned from one of
the WebReference2 getService methods.
Parameters:
key
-
the key to use.
port
-
the port on which the property is set
Returns:
the property using the specified key and port.
isAllowChunking
static
isAllowChunking(port
:
Object)
:
boolean
Returns true if the HTTP request may be chunked, false otherwise
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
Returns:
returns true if the HTTP request may be chunked and false otherwise
setAllowChunking
static
setAllowChunking(port
:
Object, allow
:
boolean)
:
void
Indicate that HTTP chunked Transfer-Encoding may be used.
The default behavior is true. If false then the request will not
be chunked and the Content-Length will always be sent.
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
allow
-
true to enable chunking, false otherwise
setConnectionTimeout
static
setConnectionTimeout(timeoutInMilliseconds
:
Number, port
:
Object)
:
void
Sets the connection timeout for the port.
Parameters:
timeoutInMilliseconds
-
the connection timeout.
port
-
a port returned from one of the WebReference2 getService methods.
setHTTPRequestHeader
Sets an HTTP request header property using the specified key and value.
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
key
-
the header property key.
value
-
the header property value. If the value is null, the property identified by the key is removed from the HTTP request header.
setProperty
Set the SOAP request property using the specified key and value on a port
returned from one of the WebReference2 getService() methods. The property
keys are defined as constants in
Port.
Parameters:
key
-
the key to use.
value
-
the value.
port
-
the port on which the property is set.
setRequestTimeout
static
setRequestTimeout(timeoutInMilliseconds
:
Number, port
:
Object)
:
void
Sets the read timeout value for a request made on the specified port.
If the request exceeds the timeout value, an error is thrown.
Parameters:
timeoutInMilliseconds
-
the timeout.
port
-
a port returned from one of the WebReference2 getService methods.
setUserNamePassword
Parameters:
userName
-
the user name.
password
-
the password.
port
-
a port returned from one of the WebReference2 getService methods.
setWSSecurityConfig
static
setWSSecurityConfig(port
:
Object, requestConfigMap
:
Object, responseConfigMap
:
Object)
:
void
Set the WS-Security configuration for the request and response based on the
constants defined (see above).
Parameters:
port
-
a port returned from one of the WebReference2 getService methods.
requestConfigMap
-
the WS-Security request configuration.
responseConfigMap
-
the WS-Security response configuration.