Qorus Integration Engine®  4.0.3_git
com.qoretechnologies.qorus.test.CallSoapMethod Class Reference

This class will invokes a SOAP operation and optionally check the response. More...

Inheritance diagram for com.qoretechnologies.qorus.test.CallSoapMethod:
com.qoretechnologies.qorus.test.Action org::qore::jni::QoreObjectWrapper

Public Member Methods

 CallSoapMethod (SoapClient soapClient, String operation, Object args) throws Throwable
 Creates the action from the arguments. More...
 
 CallSoapMethod (String wsdl, String url, String operation, Object args) throws Throwable
 Creates the action from the arguments. More...
 
CallSoapMethod expectResponse (Object expectedResponse) throws Throwable
 Sets the expected response to be checked by run() More...
 
Object run (QorusInterfaceTest t) throws Throwable
 Invokes the SOAP operation specified in constructor and optionally checks the response if the expectResponse() method was called. More...
 
Object getResponse () throws Throwable
 Returns the actual value returned by the SOAP operation. More...
 
HashMap< String, ObjectgetInfo () throws Throwable
 Returns a hash of technical information about the SOAP call (raw message info and headers) More...
 

Additional Inherited Members

- Private Member Methods inherited from com.qoretechnologies.qorus.test.Action
 Action (QoreObject obj)
 protected constructor to create the wrapper object
 

Detailed Description

This class will invokes a SOAP operation and optionally check the response.

If the response is not known in advance:
exec(new CallSoapMethod("wdsl file name", "service url", "SOAP operation name", args).expectResponse(response_hash));
If the response is not known in advance:
Object response = exec(new CallSoapMethod("wdsl file name", "service url", "SOAP operation name", args).getResponse();
// process the response

Constructor & Destructor Documentation

◆ CallSoapMethod() [1/2]

com.qoretechnologies.qorus.test.CallSoapMethod.CallSoapMethod ( SoapClient  soapClient,
String  operation,
Object  args 
) throws Throwable
inline

Creates the action from the arguments.

Parameters
soapClientthe SoapClient instance to use for invoking the operation
operationthe name of the SOAP operation to invoke
argsthe arguments to the operation

◆ CallSoapMethod() [2/2]

com.qoretechnologies.qorus.test.CallSoapMethod.CallSoapMethod ( String  wsdl,
String  url,
String  operation,
Object  args 
) throws Throwable
inline

Creates the action from the arguments.

Parameters
wsdlthe name of the WSDL file
urlthe URL of the server
operationthe name of the SOAP operation to invoke
argsthe arguments to the operation

Member Function Documentation

◆ expectResponse()

CallSoapMethod com.qoretechnologies.qorus.test.CallSoapMethod.expectResponse ( Object  expectedResponse) throws Throwable
inline

Sets the expected response to be checked by run()

Parameters
expectedResponsethe expected response
Returns
this for chaining

◆ getInfo()

HashMap<String, Object> com.qoretechnologies.qorus.test.CallSoapMethod.getInfo ( ) throws Throwable
inline

Returns a hash of technical information about the SOAP call (raw message info and headers)

Returns
a hash of technical information about the SOAP call (raw message info and headers)

◆ getResponse()

Object com.qoretechnologies.qorus.test.CallSoapMethod.getResponse ( ) throws Throwable
inline

Returns the actual value returned by the SOAP operation.

Returns
the actual value returned by the SOAP operation

◆ run()

Object com.qoretechnologies.qorus.test.CallSoapMethod.run ( QorusInterfaceTest  t) throws Throwable
inline

Invokes the SOAP operation specified in constructor and optionally checks the response if the expectResponse() method was called.

Parameters
tQorusInterfaceTest test object

The documentation for this class was generated from the following file: