Overview Module Function Class I*Tea 3.6.8 Reference Documentation© 2013 PDM&FC

Class TWsClient

Method Summary
function opName
function opName opArgNameList
function opName opArgNameList resultParam
function opName resultParam
         Creates a Tea function that executes a remote operation on a web service.
functionVarArgs opName
         Creates a Tea function that executes a remote operation on a SOAP web service.
getLastRequest
         Fetches the contents of the message corresponding the request for the last executed operation.
getLastResponse
         Fetches the contents of the message corresponding the response for the last executed operation.

Method Detail

function

TWsClient function opName
TWsClient function opName opArgNameList
TWsClient function opName opArgNameList resultParam
TWsClient function opName resultParam

Creates a Tea function that executes a remote operation on a web service.

Parameters:
opName - Symbol representing the name of the web service operation that is invoked.
opArgNameList - List of symbols representing the names of the operation arguments. If not specified then the Tea function expects to receive as single argument a THashtable containing the arguments to be passed to the operation.
resultParam - Symbol representing the name of the parameter in the response whose value will be used as the result of the Tea function. If not specified then the Tea function will return a THashtable containing all of the operation returned values.
Returns:
A function object.

The order of the names of the operation arguments defined in opArgNameList is significant.

functionVarArgs

TWsClient functionVarArgs opName

Creates a Tea function that executes a remote operation on a SOAP web service.

Parameters:
opName - Symbol representing the name of the web service operation that will be invoked when the Tea function is executed.
Returns:
A function object. When that function is executed the remote operation is invoked.

Creates a Tea function that executes a remote operation on a SOAP web service.

The Tea function expects to receive as single argument a THashtable instance containing the operation input parameters. The function will also return a THashtable instance, this time containing the operation output parameters.


getLastRequest

TWsClient getLastRequest

Fetches the contents of the message corresponding the request for the last executed operation.

Returns:
A string object or null if no operation has yet been performed.

The returned string contains the contents of the message representing the request for the last executed operation. An operation is executed whenever one of the functions created by calling the function is invoked.

getLastResponse

TWsClient getLastResponse

Fetches the contents of the message corresponding the response for the last executed operation.

Returns:
A string object or null if no operation has yet been performed or if no response was received from the server when the operation was performed.

The returned string contains the contents of the message representing the response for the last executed operation. An operation is executed whenever one of the functions created by calling the function is invoked.


Overview Module Function Class ${tea.teadoc.header}
Report a bug or request new features
© 2013