?? soapdoc2.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html><meta name="GENERATOR" content="TtH 3.00"> <style type="text/css"><!-- td div.comp { margin-top: -0.6ex; margin-bottom: -1ex;} td div.comb { margin-top: -0.6ex; margin-bottom: -.6ex;} td div.hrcomp { line-height: 0.9; margin-top: -0.8ex; margin-bottom: -1ex;} td div.norm {line-height:normal;} span.roman {font-family: serif; font-style: normal; font-weight: normal;} span.overacc2 {position: relative; left: .8em; top: -1.2ex;} span.overacc1 {position: relative; left: .6em; top: -1.2ex;} --></style><body bgcolor="#FFFFFF">
<title> The gSOAP Stub and Skeleton Compiler for C and C++ 2.1.6</title> <h1 align="center">The gSOAP Stub and Skeleton Compiler for C and C++ 2.1.6 </h1>
<h3 align="center">Robert A. van Engelen <br />Department of Computer Science <br />Florida State University <br />Tallahassee, FL32306-4530 <br />engelen@cs.fsu.edu </h3>
<h3 align="center">Jul 14, 2002<br /><a href="soapdoc2.pdf"><font color="#FF0000"><b>[This document is also available in PDF format (black and white only)]</b></font></a></h3>
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#D0D0D0"><tr><td><span class="roman">
<h1>Contents </h1><a href="#tth_sEc1">1 <font color="#0000FF">Introduction</font></a><br /><a href="#tth_sEc2">2 <font color="#0000FF">Notational Conventions</font></a><br /><a href="#tth_sEc3">3 <font color="#0000FF">Differences Between gSOAP Versions 1.X and 2.X</font></a><br /><a href="#tth_sEc4">4 <font color="#0000FF">Interoperability</font></a><br /><a href="#tth_sEc5">5 <font color="#0000FF">Quick User Guide</font></a><br /> <a href="#tth_sEc5.1">5.1 <font color="#0000FF">How to Use the gSOAP Stub and Skeleton Compiler to Build SOAP Clients</font></a><br /> <a href="#tth_sEc5.1.1">5.1.1 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.1.2">5.1.2 <font color="#0000FF">Namespace Considerations</font></a><br /> <a href="#tth_sEc5.1.3">5.1.3 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.1.4">5.1.4 <font color="#0000FF">Some SOAP Encoding Considerations</font></a><br /> <a href="#tth_sEc5.1.5">5.1.5 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.1.6">5.1.6 <font color="#0000FF">How to Change the Response Element Name</font></a><br /> <a href="#tth_sEc5.1.7">5.1.7 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.1.8">5.1.8 <font color="#0000FF">How to Specify Multiple Output Parameters</font></a><br /> <a href="#tth_sEc5.1.9">5.1.9 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.1.10">5.1.10 <font color="#0000FF">How to Specify Output Parameters With Complex Data Types</font></a><br /> <a href="#tth_sEc5.1.11">5.1.11 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.1.12">5.1.12 <font color="#0000FF">How to Specify Anonymous Parameter Names</font></a><br /> <a href="#tth_sEc5.1.13">5.1.13 <font color="#0000FF">How to Specify a Method with No Input Parameters</font></a><br /> <a href="#tth_sEc5.2">5.2 <font color="#0000FF">How to Use the gSOAP Stub and Skeleton Compiler to Build SOAP Web Services</font></a><br /> <a href="#tth_sEc5.2.1">5.2.1 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.2.2">5.2.2 <font color="#0000FF">How to Create a Stand-Alone Service</font></a><br /> <a href="#tth_sEc5.2.3">5.2.3 <font color="#0000FF">How to Create a Multi-Threaded Stand-Alone Service</font></a><br /> <a href="#tth_sEc5.2.4">5.2.4 <font color="#0000FF">Some Web Service Implementation Issues</font></a><br /> <a href="#tth_sEc5.2.5">5.2.5 <font color="#0000FF">How to Generate WSDL Service Descriptions</font></a><br /> <a href="#tth_sEc5.2.6">5.2.6 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.2.7">5.2.7 <font color="#0000FF">How to Import WSDL Service Descriptions</font></a><br /> <a href="#tth_sEc5.2.8">5.2.8 <font color="#0000FF">How to Specify minOccurs and maxOccurs Schema Attributes</font></a><br /> <a href="#tth_sEc5.2.9">5.2.9 <font color="#0000FF">Combining a Client and Service into a Peer Application</font></a><br /> <a href="#tth_sEc5.3">5.3 <font color="#0000FF">How to Use gSOAP for One-Way SOAP Messaging</font></a><br /> <a href="#tth_sEc5.4">5.4 <font color="#0000FF">How to Separately Use the SOAP Serializers and Deserializers</font></a><br /> <a href="#tth_sEc5.4.1">5.4.1 <font color="#0000FF">Serializing a Data Type</font></a><br /> <a href="#tth_sEc5.4.2">5.4.2 <font color="#0000FF">Deserializing a Data Type</font></a><br /> <a href="#tth_sEc5.4.3">5.4.3 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc5.4.4">5.4.4 <font color="#0000FF">Default Values for Deserializing Omitted Data</font></a><br /><a href="#tth_sEc6">6 <font color="#0000FF">Using the gSOAP Stub and Skeleton Compiler</font></a><br /> <a href="#tth_sEc6.1">6.1 <font color="#0000FF">Compiler Options</font></a><br /> <a href="#tth_sEc6.2">6.2 <font color="#0000FF">Compiling a SOAP C++ Client</font></a><br /> <a href="#tth_sEc6.3">6.3 <font color="#0000FF">Compiling a SOAP C++ Web Service</font></a><br /> <a href="#tth_sEc6.4">6.4 <font color="#0000FF">Using gSOAP for Creating Web Services and Clients in C</font></a><br /> <a href="#tth_sEc6.5">6.5 <font color="#0000FF">Limitations of gSOAP</font></a><br /> <a href="#tth_sEc6.6">6.6 <font color="#0000FF">gSOAP Serialization Options and Flags</font></a><br /> <a href="#tth_sEc6.7">6.7 <font color="#0000FF">Memory Management</font></a><br /> <a href="#tth_sEc6.8">6.8 <font color="#0000FF">Debugging</font></a><br /> <a href="#tth_sEc6.9">6.9 <font color="#0000FF">Libraries</font></a><br /><a href="#tth_sEc7">7 <font color="#0000FF">The gSOAP Remote Method Specification Format</font></a><br /> <a href="#tth_sEc7.1">7.1 <font color="#0000FF">Remote Method Parameter Passing</font></a><br /> <a href="#tth_sEc7.2">7.2 <font color="#0000FF">Stub and Skeleton Routine Error Codes</font></a><br /> <a href="#tth_sEc7.3">7.3 <font color="#0000FF">C++ Identifier Name to XML Element Name Translation</font></a><br /> <a href="#tth_sEc7.4">7.4 <font color="#0000FF">Namespace Mapping Table</font></a><br /><a href="#tth_sEc8">8 <font color="#0000FF">gSOAP Serialization and Deserialization Rules</font></a><br /> <a href="#tth_sEc8.1">8.1 <font color="#0000FF">Primitive Type Encoding</font></a><br /> <a href="#tth_sEc8.2">8.2 <font color="#0000FF">How to Encode and Decode Primitive Types as Built-In XML Schema Types</font></a><br /> <a href="#tth_sEc8.2.1">8.2.1 <font color="#0000FF">How to Specify Multiple Storage Formats for a Single Primitive XML Schema Type</font></a><br /> <a href="#tth_sEc8.2.2">8.2.2 <font color="#0000FF">How to Specify Polymorphic Primitive Types</font></a><br /> <a href="#tth_sEc8.2.3">8.2.3 <font color="#0000FF">XML Schema Type Decoding Rules</font></a><br /> <a href="#tth_sEc8.2.4">8.2.4 <font color="#0000FF">Multi-Reference Strings</font></a><br /> <a href="#tth_sEc8.2.5">8.2.5 <font color="#0000FF">``Smart String'' Mixed-Content Decoding</font></a><br /> <a href="#tth_sEc8.2.6">8.2.6 <font color="#0000FF">Changing the Encoding Precision of <b>float</b> and <b>double</b> Types</font></a><br /> <a href="#tth_sEc8.2.7">8.2.7 <font color="#0000FF">INF, -INF, and NaN Values of <b>float</b> and <b>double</b> Types</font></a><br /> <a href="#tth_sEc8.3">8.3 <font color="#0000FF">Enumeration Type Encoding and Decoding</font></a><br /> <a href="#tth_sEc8.3.1">8.3.1 <font color="#0000FF">Symbolic Encoding of Enumeration Constants</font></a><br /> <a href="#tth_sEc8.3.2">8.3.2 <font color="#0000FF">Literal Encoding of Enumeration Constants</font></a><br /> <a href="#tth_sEc8.3.3">8.3.3 <font color="#0000FF">Initialized Enumeration Constants</font></a><br /> <a href="#tth_sEc8.3.4">8.3.4 <font color="#0000FF">How to ``Reuse'' Symbolic Enumeration Constants</font></a><br /> <a href="#tth_sEc8.3.5">8.3.5 <font color="#0000FF">Boolean Enumeration Type Encoding and Decoding for C Compilers</font></a><br /> <a href="#tth_sEc8.3.6">8.3.6 <font color="#0000FF">Bitmask Enumeration Encoding and Decoding</font></a><br /> <a href="#tth_sEc8.4">8.4 <font color="#0000FF"><b>struct</b> Encoding and Decoding</font></a><br /> <a href="#tth_sEc8.5">8.5 <font color="#0000FF"><b>class</b> Instance Encoding and Decoding</font></a><br /> <a href="#tth_sEc8.5.1">8.5.1 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc8.5.2">8.5.2 <font color="#0000FF">Initialized <b>static</b> <b>const</b> Fields</font></a><br /> <a href="#tth_sEc8.5.3">8.5.3 <font color="#0000FF">Class Methods</font></a><br /> <a href="#tth_sEc8.5.4">8.5.4 <font color="#0000FF">Polymorphism, Derived Classes, and Dynamic Binding</font></a><br /> <a href="#tth_sEc8.6">8.6 <font color="#0000FF">Pointer Encoding and Decoding</font></a><br /> <a href="#tth_sEc8.6.1">8.6.1 <font color="#0000FF">Multi-Reference Data</font></a><br /> <a href="#tth_sEc8.6.2">8.6.2 <font color="#0000FF">NULL Pointers and Nil Elements</font></a><br /> <a href="#tth_sEc8.7">8.7 <font color="#0000FF">Fixed-Size Arrays</font></a><br /> <a href="#tth_sEc8.8">8.8 <font color="#0000FF">Dynamic Arrays</font></a><br /> <a href="#tth_sEc8.8.1">8.8.1 <font color="#0000FF">One-Dimensional Dynamic Arrays</font></a><br /> <a href="#tth_sEc8.8.2">8.8.2 <font color="#0000FF">Example</font></a><br /> <a href="#tth_sEc8.8.3">8.8.3 <font color="#0000FF">One-Dimensional Dynamic Arrays With Non-Zero Offset</font></a><br /> <a href="#tth_sEc8.8.4">8.8.4 <font color="#0000FF">Nested One-Dimensional Dynamic Arrays</font></a><br /> <a href="#tth_sEc8.8.5">8.8.5 <font color="#0000FF">Multi-Dimensional Dynamic Arrays</font></a><br /> <a href="#tth_sEc8.8.6">8.8.6 <font color="#0000FF">Dynamic Array as List Encoding</font></a><br /> <a href="#tth_sEc8.8.7">8.8.7 <font color="#0000FF">Polymorphic Dynamic Arrays and Lists</font></a><br /> <a href="#tth_sEc8.8.8">8.8.8 <font color="#0000FF">How to Change the Tag Names of the Elements of a SOAP Array or List</font></a><br /> <a href="#tth_sEc8.8.9">8.8.9 <font color="#0000FF">Embedded Arrays and Lists</font></a><br /> <a href="#tth_sEc8.9">8.9 <font color="#0000FF">Base64Binary XML Schema Type Encoding</font></a><br /> <a href="#tth_sEc8.10">8.10 <font color="#0000FF">hexBinary XML Schema Type Encoding</font></a><br /> <a href="#tth_sEc8.11">8.11 <font color="#0000FF">Doc/Literal XML Encoding Style</font></a><br />
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -