SOAP/XML services use data bindings contractually bound by WSDL and auto- generated by wsdl2h and soapcpp2 (see Service Bindings). Plain data bindings are adopted from XML schemas as part of the WSDL types section or when running wsdl2h on a set of schemas to produce non-SOAP-based XML data bindings.
The following readers and writers are C/C++ data type (de)serializers auto- generated by wsdl2h and soapcpp2. Run soapcpp2 on this file to generate the (de)serialization code, which is stored in soapC.c[pp]. Include "soapH.h" in your code to import these data type and function declarations. Only use the soapcpp2-generated files in your project build. Do not include the wsdl2h- generated .h file in your code.
Data can be read and deserialized from:
- an int file descriptor, using soap->recvfd = fd
- a socket, using soap->socket = (int)...
- a C++ stream (istream, stringstream), using soap->is = (istream*)...
- a C string, using soap->is = (const char*)...
- any input, using the soap->frecv() callback
Data can be serialized and written to:
- an int file descriptor, using soap->sendfd = (int)...
- a socket, using soap->socket = (int)...
- a C++ stream (ostream, stringstream), using soap->os = (ostream*)...
- a C string, using soap->os = (const char**)...
- any output, using the soap->fsend() callback
The following options are available for (de)serialization control:
- soap->encodingStyle = NULL; to remove SOAP 1.1/1.2 encodingStyle
- soap_mode(soap, SOAP_XML_TREE); XML without id-ref (no cycles!)
- soap_mode(soap, SOAP_XML_GRAPH); XML with id-ref (including cycles)
- soap_set_namespaces(soap, struct Namespace *nsmap); to set xmlns bindings
Top-level root elements of schema "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01"
- <wsdd:Hello> _wsdd__Hello
soap_GET__wsdd__Hello(
struct soap*,
const char *URL,
_wsdd__Hello*);
soap_PUT__wsdd__Hello(
struct soap*,
const char *URL,
_wsdd__Hello*);
soap_POST_send__wsdd__Hello(
struct soap*,
const char *URL,
_wsdd__Hello*);
- <wsdd:Bye> _wsdd__Bye
soap_GET__wsdd__Bye(
struct soap*,
const char *URL,
_wsdd__Bye*);
soap_PUT__wsdd__Bye(
struct soap*,
const char *URL,
_wsdd__Bye*);
soap_POST_send__wsdd__Bye(
struct soap*,
const char *URL,
_wsdd__Bye*);
soap_POST_recv__wsdd__Bye(
struct soap*,
_wsdd__Bye*);
- <wsdd:Probe> _wsdd__Probe
soap_GET__wsdd__Probe(
struct soap*,
const char *URL,
_wsdd__Probe*);
soap_PUT__wsdd__Probe(
struct soap*,
const char *URL,
_wsdd__Probe*);
soap_POST_send__wsdd__Probe(
struct soap*,
const char *URL,
_wsdd__Probe*);
- <wsdd:ProbeMatches> _wsdd__ProbeMatches
- <wsdd:Resolve> _wsdd__Resolve
soap_GET__wsdd__Resolve(
struct soap*,
const char *URL,
_wsdd__Resolve*);
soap_PUT__wsdd__Resolve(
struct soap*,
const char *URL,
_wsdd__Resolve*);
soap_POST_send__wsdd__Resolve(
struct soap*,
const char *URL,
_wsdd__Resolve*);
- <wsdd:ResolveMatches> _wsdd__ResolveMatches
- <wsdd:Types> _wsdd__Types
soap_GET__wsdd__Types(
struct soap*,
const char *URL,
_wsdd__Types*);
soap_PUT__wsdd__Types(
struct soap*,
const char *URL,
_wsdd__Types*);
soap_POST_send__wsdd__Types(
struct soap*,
const char *URL,
_wsdd__Types*);
- <wsdd:Scopes> _wsdd__Scopes
soap_GET__wsdd__Scopes(
struct soap*,
const char *URL,
_wsdd__Scopes*);
soap_PUT__wsdd__Scopes(
struct soap*,
const char *URL,
_wsdd__Scopes*);
soap_POST_send__wsdd__Scopes(
struct soap*,
const char *URL,
_wsdd__Scopes*);
- <wsdd:XAddrs> _wsdd__XAddrs
soap_GET__wsdd__XAddrs(
struct soap*,
const char *URL,
_wsdd__XAddrs*);
soap_PUT__wsdd__XAddrs(
struct soap*,
const char *URL,
_wsdd__XAddrs*);
soap_POST_send__wsdd__XAddrs(
struct soap*,
const char *URL,
_wsdd__XAddrs*);
- <wsdd:MetadataVersion> _wsdd__MetadataVersion
- <wsdd:SupportedMatchingRules> _wsdd__SupportedMatchingRules
- <wsdd:Security> _wsdd__Security
soap_POST_send__wsdd__Security(
struct soap*,
const char *URL,
_wsdd__Security*);
- <wsdd:Sig> _wsdd__Sig
soap_GET__wsdd__Sig(
struct soap*,
const char *URL,
_wsdd__Sig*);
soap_PUT__wsdd__Sig(
struct soap*,
const char *URL,
_wsdd__Sig*);
soap_POST_send__wsdd__Sig(
struct soap*,
const char *URL,
_wsdd__Sig*);
soap_POST_recv__wsdd__Sig(
struct soap*,
_wsdd__Sig*);
- <wsdd:AppSequence> _wsdd__AppSequence