Download gSOAP 2.7.9 User Guide
Transcript
7.1.9 7.2 How to Specify Multiple Output Parameters . . . . . . . . . . . . . . . . 30 7.1.10 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.1.11 How to Specify Output Parameters With struct/class Compound Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.1.12 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.1.13 How to Specify Anonymous Parameter Names . . . . . . . . . . . . . . . 34 7.1.14 How to Specify a Method with No Input Parameters . . . . . . . . . . . . 35 7.1.15 How to Specify a Method with No Output Parameters . . . . . . . . . . . 36 How to Use the gSOAP Stub and Skeleton Compiler to Build SOAP Web Services 36 7.2.1 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.2.2 MSVC++ Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.2.3 How to Create a Stand-Alone gSOAP Service . . . . . . . . . . . . . . . . 39 7.2.4 How to Create a Multi-Threaded Stand-Alone Service . . . . . . . . . . . 41 7.2.5 How to Pass Application Data to Service Methods . . . . . . . . . . . . . 47 7.2.6 Some Web Service Implementation Issues . . . . . . . . . . . . . . . . . . 47 7.2.7 How to Generate C++ Server Object Classes . . . . . . . . . . . . . . . . 48 7.2.8 How to Generate WSDL Service Descriptions . . . . . . . . . . . . . . . . 49 7.2.9 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 7.2.10 How to Parse and Import WSDL Service Descriptions to Develop Clients and Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 7.2.11 The typemap.dat File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 7.2.12 How to Use Client Functionalities Within a Service . . . . . . . . . . . . . 54 7.3 How to Use gSOAP for Asynchronous One-Way Message Passing . . . . . . . . . 57 7.4 One-Way Message Passing over HTTP . . . . . . . . . . . . . . . . . . . . . . . . 58 7.5 How to Use the SOAP Serializers and Deserializers to Save and Load Application Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 7.5.1 Serializing a Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.5.2 Deserializing a Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 7.5.3 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 7.5.4 Serializing and Deserializing Class Instances to Streams . . . . . . . . . . 69 7.5.5 How to Specify Default Values for Omitted Data . . . . . . . . . . . . . . 70 8 Using the gSOAP Stub and Skeleton Compiler 72 8.1 Compiler Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 8.2 SOAP 1.1 Versus SOAP 1.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 8.3 The soapdefs.h Header File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 8.4 How to Build Modules and Libraries with the gSOAP #module Directive . . . . 75 8.5 How to use the gSOAP #import Directive . . . . . . . . . . . . . . . . . . . . . . 76 8.6 How to Use #include and #define Directives . . . . . . . . . . . . . . . . . . . . 77 2