Invokes a SOAP operation and optionally checks the response.
More...
Invokes a SOAP operation and optionally checks the response.
- If the response is not known in advance:
exec(new CallSoapMethod(
"wdsl file name",
"service url",
"SOAP operation name", (
"arg1":
"value")).expectResponse((
"retVal1": 8)));
- If the response is not known in advance:
any response =
exec(new CallSoapMethod(
"wdsl file name",
"service url",
"SOAP operation name", (
"arg1":
"value"))).getResponse();
◆ constructor() [1/2]
QorusInterfaceTest::CallSoapMethod::constructor |
( |
SoapClient |
soapClient, |
|
|
string |
operation, |
|
|
auto |
args |
|
) |
| |
Creates the action.
- Parameters
-
soapClient | the SoapClient instance to use for invoking the operation |
operation | the name of the SOAP operation to invoke |
args | the arguments to the operation |
◆ constructor() [2/2]
QorusInterfaceTest::CallSoapMethod::constructor |
( |
string |
wsdl, |
|
|
string |
url, |
|
|
string |
operation, |
|
|
auto |
args |
|
) |
| |
Creates the action.
- Parameters
-
wsdl | the name of the WSDL file |
url | the URL of the server |
operation | the name of the SOAP operation to invoke |
args | the arguments to the operation |
◆ expectResponse()
CallSoapMethod QorusInterfaceTest::CallSoapMethod::expectResponse |
( |
auto |
expectedResponse | ) |
|
Sets the expected response to be checked by run()
- Parameters
-
expectedResponse | the expected response |
- Returns
- self for chaining
◆ getInfo()
hash<auto> QorusInterfaceTest::CallSoapMethod::getInfo |
( |
| ) |
|
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()
auto QorusInterfaceTest::CallSoapMethod::getResponse |
( |
| ) |
|
Returns the actual value returned by the SOAP operation.
- Returns
- the actual value returned by the SOAP operation
◆ run()
The documentation for this class was generated from the following file: