ParaEngine::INPLWebService Class Reference

List of all members.

Detailed Description

NPL interface of a XML Web service client proxy.


Public Member Functions

virtual const char * Invoke (const char *OperationName, const char *msg)=0
 Invokes an XML Web service method synchronously using SOAP.
virtual void InvokeAsync (const char *OperationName, const char *msg, const char *sCallBackCode)=0
 Invokes the specified method asynchronously.
virtual const char * GetURL ()=0
 Gets or sets the base URL of the XML Web service the client is requesting.
virtual void Abort ()=0
 Abort cancels a synchronous XML Web service request.


Member Function Documentation

virtual const char* ParaEngine::INPLWebService::Invoke ( const char *  OperationName,
const char *  msg 
) [pure virtual]

Invokes an XML Web service method synchronously using SOAP.

Parameters:
OperationName,: if this is NULL or "", the name "Activate" is assumed.
msg,: NPL sCode, which must be a "msg" variable. e.g. msg={op="add", x=1, y=1};
Returns:
: NPL sCode, which is a "msg" variable. e.g. msg={result=2};"

virtual void ParaEngine::INPLWebService::InvokeAsync ( const char *  OperationName,
const char *  msg,
const char *  sCallBackCode 
) [pure virtual]

Invokes the specified method asynchronously.

Parameters:
OperationName,: if this is NULL or "", the name "Activate" is assumed.
msg,: NPL sCode, which must be a "msg" variable. e.g. msg={op="add", x=1, y=1};
sCallBackCode,: code to be executed upon return. The returning NPL code from the web service is executed before the sCallBackCode.

virtual const char* ParaEngine::INPLWebService::GetURL (  )  [pure virtual]

Gets or sets the base URL of the XML Web service the client is requesting.

virtual void ParaEngine::INPLWebService::Abort (  )  [pure virtual]

Abort cancels a synchronous XML Web service request.

Since a synchronous request will block the thread until the response has been processed you must call Abort from a separate thread.


Generated on Mon Dec 1 14:34:44 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2