The Middleware as Platform for IT Application Services
Client Programming Guide
Using the sample "Hello" bundled with the OpenSOAP Package as an example,
an outline of how to create a Web Service Client Program using OpenSOAP is described.
Common ProcessingInitialization and termination of the OpenSOAP API
Creating A Request MessageIn the "individual processes" above, first a request message creation part is added.
is prepared, to which is added a Body Block, Name Space, Child Elements etc., to complete the SOAP Envelope.
Using the OpenSOAPEnvelopeXXX Function Group in the Layer<Envelope> , the OpenSOAPBlockXXX Function Group in the Body Block<Body> and below this the OpenSOAPXMLElmXXX Function Group for the Child Elements, the message tree structure can be handled.
Calling The Web ServiceContinuing, the created request message is sent to the Web Service and the response reception process is described.
Transport Pointer:OpenSOAPTransportPtr (Ex)transport
contains the necessary information regarding the Endpoint, the SOAPAction, and the called service. The function OpenSOAPTransportInvoke is used to send the request message to the specified Endpoint URL.
Response EnvelopePointer:OpenSOAPEnvelopePtr (Ex)response
contains the response message.
Analysis Of Response MessageWith regard to the response message contained within the EnvelopePointer, the Analysis Funtion Group:OpenSOAPXXXGetXXX is used to parse the message.
Copyright (C) 2001-2004 Webmasters of www.opensoap.jp. All Rights Reserved.