Skip to main content
Skip table of contents

getServiceContext() Function() Operation

Syntax
NONE
anArray = getServiceContext(protocol)
Semantics

Returns an array of ContextElement (Base Components::Basic Behavior::ServiceContext) objects containing all basic context parameters of the specified protocol related to the current request. If the protocol is not known the operation will return an empty array.

Certain context parameters accessible with the function getServiceContextValue() are excluded for performance considerations. These are body for HTTP, and header and body for SOAP.

SubstitutablesprotocolA String specifying the protocol, of which parameters are requested. 
Examples
NONE
set serviceContext = getServiceContext("tcpip"); 
set param1.name = serviceContext[0].name; 
set param2.value = serviceContext[0].value;

Supported protocols per service type

Only supported service types are listed.

Service TypeProtocols
HTTPTCPIP, HTTP
SOAPTCPIP, HTTP, SOAP
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.