TOC PREV NEXT INDEX


Generated C Encode Functions for WSDL Messages


Web service description language (WSDL) documents may contain message definitions that contain various parts. For example:
    <message name="GetLastTradePriceInput">
        <part name="body" element="xsd1:TradePriceRequest"/>
    </message>

XBinder treats this like an <xsd:sequence> definition with the message definition being the container and the parts being the individual elements. An encode function is generated for each message in the following format:
    [<ns>]XmlEnc_<msgName>Message

where <msgName> is the name of the WSDL message and <ns> is an optional namespace setting that can be used to disambiguate element names from multiple sources (note: this should not be confused with XML namespaces which are different).
The calling sequence for a WSDL message encode function is as follows:

    status = <encodeFunc> (OSCTXT* pctxt, <name>[*] value);

In this definition, <encodeFunc> denotes the encode function name defined above. The pctxt argument is a pointer to a context structure. The value or pvalue argument is the item to be encoded either passed by value or pointer. These arguments and the return status value are the same as previous described for C type encode functions.

Copyright © Objective Systems 2002-2007
This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included.

Objective Systems, Inc.

55 Dowlin Forge Road
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com

TOC PREV NEXT INDEX