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.

For performance considerations, body for HTTP, and header and body for SOAP are excluded from getServiceContext(). Use getServiceContextValue() to get these values.

SubstitutablesprotocolA 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

Supported Parameters