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:

Constant Summary 

ConstantDescription
ENCODING: StringProperty constant for controlling the content type encoding of an outgoing message.
ENDPOINT_ADDRESS_PROPERTY: StringThe target service endpoint address.
PASSWORD_PROPERTY: StringPassword for authentication.
SESSION_MAINTAIN_PROPERTY: StringThis boolean property is used by a service client to indicate whether or not it wants to participate in a session with a service endpoint.
USERNAME_PROPERTY: StringUser name for authentication.

Constructor Summary 

ConstructorDescription
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

Constant Details 

ENCODING 

ENCODING: String

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

See Also:


ENDPOINT_ADDRESS_PROPERTY 

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:


PASSWORD_PROPERTY 

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:


SESSION_MAINTAIN_PROPERTY 

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:


USERNAME_PROPERTY 

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:


Constructor Details 

Port() 

Port()