Client method call to SOAP request/response message pair
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
This is a sample VB.NET method call to the FindCustomerByNum( ) method
defined in the client interface, where the OrderInfo AppObject instance on
which the method is called is named webService:
Interface method call generating SOAP messages
|
Thus, the call passes a value of 3 for the CustomerNumber parameter as input and receives the value returned by the CustomerName output parameter in a variable that happens also to
be named CustomerName.
This is the SOAP request message sent out by the client after invoking the
FindCustomerByNum( ) method. You can see that the value
(3) for the input parameter, CustomerNumber, is passed in the SOAP message body:
|
This is the SOAP response message returned by the WSA with the value
("Hoops") for the output parameter, CustomerName:
|
If an error occurred at any point after the SOAP request message was received by the WSA, a SOAP fault message would be returned instead of the SOAP response message shown in the example. For information on SOAP fault messages returned for a method, see Handling Web service errors and SOAP faults.