本文翻译只是出于学习的目的,中文部分仅代表个人观点,有错误还望指正,英文部分来自gsoap-win32-2.7\doc\soapdoc2.pdf。其中复制可能有误,可以看懂英文的还请到官网下载。如有版权争议,请联系QQ:643166601,本人会及处理。翻译新手,有错是必然的,求高人指点。欢迎同为新手的你共同学习。
7.2 How to Use the gSOAP Stub and Skeleton Compiler to Build SOAP Web Services
7.2 如何使用gSOAP Stub和Skeleton编译器去构建SOAP Web Services
The gSOAP stub and skeleton compiler generates skeleton routines in C++ source form for each of the remote methods specified as function prototypes in the header file processed by the gSOAP compiler.
这个gSOAP stub和skeleton编译器生成skeleton程序,C++源代码来自每个远程方法函数原型指定的,在头文件中被加工出来。
The skeleton routines can be readily used to implement the remote methods in a new SOAP Web service.
这个skeleton程序可以轻而易举使用在一个新的OAP Web service中执行远程方法。
The compound data types used by the input and output parameters of SOAP remote methods must be declared in the header file, such as structs, classes, arrays, and pointerbased data structures (graphs) that are used as the data types of the parameters of a remote method.
SOAP远程方法必须在头文件中声明使用在输入和输出参数中的这些复合数据类型,像结构体,类,数组,和基于指针的数据结构(图)被用作远程方法的参数数据类型。
The gSOAP compiler automatically generates serializers and deserializers for the data types to enable the generated skeleton routines to encode and decode the contents of the parameters of the remote methods.
这个gSOAP编译器自动第生成序列化和反序列化的数据类型使能够生成skeleton程序编码和解码远程方法的参数内容。
The gSOAP compiler also generates a remote method request dispatcher routine that will serve requests by calling the appropriate skeleton when the SOAP service application is installed as a CGI application on a Web server.
这个gSOAP编译器也生成一个远程方法请求调度程序,当这个SOAP服务应用作为一个CGI应用安装在一个Web服务器上,它将服务请求通过调用适当的skeleton。