Script: Class dw.ws.Port

Class Port

This class represents a port to a Service Endpoint Interface. This class provides access to operations the service provides. Use the WSUtil class to perform operations on the port such as setting timeout values and configuring security.

Developers should set a low timeout to ensure responsiveness of the site and avoid thread exhaustion (see WSUtil.setRequestTimeout(Number, Object)). The default request timeout is 15 minutes when the web reference is used in a job, and 2 minutes otherwise. If the timeout of the calling script is lower, the script timeout is used.

See Also:

WSUtil

Constants

ENCODING : String

Property constant for controlling the content type encoding of an outgoing message.

See Also:

WSUtil.setProperty(String, Object, Object)

ENDPOINT_ADDRESS_PROPERTY : String

The target service endpoint address. When using this property, the URI scheme for the endpoint address specification must correspond to the protocol/transport binding for the binding in use.

See Also:

WSUtil.setProperty(String, Object, Object)

PASSWORD_PROPERTY : String

Password for authentication. This property is used with the USERNAME_PROPERTY. You can also use the WSUtil.setUserNamePassword(String, String, Object) method instead of using these properties.

See Also:

WSUtil.setUserNamePassword(String, String, Object)

WSUtil.setProperty(String, Object, Object)

SESSION_MAINTAIN_PROPERTY : String

This boolean property is used by a service client to indicate whether or not it wants to participate in a session with a service endpoint. If this property is set to true, the service client indicates that it wants the session to be maintained. If set to false, the session is not maintained. The default value for this property is false.

See Also:

WSUtil.setProperty(String, Object, Object)

USERNAME_PROPERTY : String

User name for authentication. This property is used with the PASSWORD_PROPERTY. You can also use the WSUtil.setUserNamePassword(String, String, Object) method instead of using these properties.

See Also:

WSUtil.setUserNamePassword(String, String, Object)

WSUtil.setProperty(String, Object, Object)

Properties

Constructor Summary

Port()

Method Summary

Methods inherited from class Object

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Constructor Detail

Port

publicPort()