Deconstructing the SOAP envelope request
This cook book entry marks the point in the Web services framework where the server receives a SOAP envelope request from the client and deconstructs it prior to performing the request. The web service used is based on the SstWSInsurancePolicyInterface example shipped with VAST Platform and described .in
Getting Started: Web services in a Day.
In order to observe the SOAP envelope, one of the web services based on the insurance policy example must be deployed in server and client images.
•Passing strings to and from your service using document literal, RPC literal or RPC Encoded styles.
•Passing complex data types to and from your service using document literal, RPC literal or RPC Encoded styles.
•Using specialized handlers using document literal, RPC literal or RPC Encoded styles.
This cookbook entry considers the operation getInfoForPolicy. Once the service is deployed, a service operation, getInfoForPolicy, can be invoked. The policy number is 29467810.
The example with uses the specialized handlers as an additional operation of interest: getInfoForPolicyWithVerification. The policy number is 85496328 and 'Acme Insurance' is used to verify if the policy belongs to a recognized company.
Server side deconstruction of request envelope
To watch the deconstruction of a request envelope, set a breakpoint in SstWSBodyProcessor>>elementsToBeProcessed: ; the parameter is anSstWSMessageContext.
The result for the operation is an instance of SstSoapMappedElement.
Last modified date: 02/12/2021