Download gSOAP 2.7.0 User Guide

Transcript
8.2
8.1.13 How to Specify Anonymous Parameter Names . . . . . . . . . . . . . . .
28
8.1.14 How to Specify a Method with No Input Parameters . . . . . . . . . . . .
29
8.1.15 How to Specify a Method with No Output Parameters . . . . . . . . . . .
30
How to Use the gSOAP Stub and Skeleton Compiler to Build SOAP Web Services 30
8.2.1
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
8.2.2
MSVC++ Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
8.2.3
How to Create a Stand-Alone gSOAP Service . . . . . . . . . . . . . . . .
33
8.2.4
How to Create a Multi-Threaded Stand-Alone Service . . . . . . . . . . .
35
8.2.5
How to Pass Application Data to Service Methods . . . . . . . . . . . . .
38
8.2.6
Some Web Service Implementation Issues . . . . . . . . . . . . . . . . . .
38
8.2.7
How to Generate C++ Server Object Classes . . . . . . . . . . . . . . . .
38
8.2.8
How to Generate WSDL Service Descriptions . . . . . . . . . . . . . . . .
39
8.2.9
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
40
8.2.10 How to Parse and Import WSDL Service Descriptions to Develop Clients
and Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
43
8.2.11 How to Use Client Functionalities Within a Service . . . . . . . . . . . . .
45
8.3
How to Use gSOAP for Asynchronous One-Way Message Passing . . . . . . . . .
47
8.4
How to Use the SOAP Serializers and Deserializers to Save and Load Application
Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
48
8.4.1
Serializing a Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . .
48
8.4.2
Deserializing a Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . .
52
8.4.3
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
54
8.4.4
Serializing and Deserializing Class Instances to Streams . . . . . . . . . .
57
8.4.5
How to Specify Default Values for Omitted Data . . . . . . . . . . . . . .
59
9 Using the gSOAP Stub and Skeleton Compiler
60
9.1
Compiler Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
61
9.2
SOAP 1.1 Versus SOAP 1.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
62
9.3
The soapdefs.h Header File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
63
9.4
How to Build Modules and Libraries with the gSOAP #module Directive . . . .
64
9.5
How to use the gSOAP #import Directive . . . . . . . . . . . . . . . . . . . . . .
65
9.6
How to Use #include and #define Directives . . . . . . . . . . . . . . . . . . . .
65
9.7
Compiling a gSOAP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
66
9.8
Compiling a gSOAP Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . .
66
9.9
Using gSOAP for Creating Web Services and Clients in Pure C . . . . . . . . . .
67
9.10 Limitations of gSOAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
67
9.11 Compile Time Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
69
9.12 Run Time Flags
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
69
9.13 Memory Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
71
9.13.1 Memory Management Policies . . . . . . . . . . . . . . . . . . . . . . . . .
72
2