Breadcrumbs

getServiceContext() Function() Operation


Syntax


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.


Substitutables

protocol

A String specifying the protocol, of which parameters are requested. 

Examples


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 Type

Protocols

HTTP

TCPIP, HTTP

SOAP

TCPIP, HTTP, SOAP