您的位置:首页 > 编程语言 > C语言/C++

gsoap 命令参数介绍(wsdl2和soapcpp)

2017-12-08 17:17 260 查看

wsdl2h参数中文翻译:

 -a      generate indexed struct names for local elements with anonymous types

 -b bir-directional operations (duplex ops) to serve onerem -way response messages

 -c      生成c源代码(默认为生成C++头文件) generate C source code

 -d      use DOM to populate xs:any, xs:anyType, and xs:anyAttribute

 -e      don't qualify enum names

 -f      生成平面的C++类层次结构(没有看到现象) generate flat C++ class hierarchy

 -g      generate global top-level element declarations

 -h      display help info

 -Ipath  查找文件路径 use path to find files

 -i      don't import (advanced option)

 -j      don't generate SOAP_ENV__Header and SOAP_ENV__Detail definitions

 -k      don't generate SOAP_ENV__Header mustUnderstand qualifiers

 -l      display license information

 -m      use xsd.h module to import primitive types

 -Nname  use name for service namespace prefixes and multiple bindings

 -nname  使用"name"基础命名空间前缀代替"ns" use name as the base namespace prefix instead of 'ns'

 -ofile  指定输出文件 output to file

 -P      don't create polymorphic types inherited from xsd__anyType

 -p      create polymorphic types inherited from base xsd__anyType

 -qname  在所有声明中使用命名空间"name"(同时拥有-p功能) use name for the C++ namespace of all declarations

 -rhost  [:port[:uid:pwd]]connect via proxy host, port, and proxy credentials

 -s      不使用Std代码 don't generate STL code (no std::string and no std::vector)

 -tfile  use type map file instead of the default file typemap.dat—— 
typemap.dat包含信息,如SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"xsi="http://www.w3.org/2001/XMLSchema-instance"xsd="http://www.w3.org/2001/XMLSchema"

 -u      don't generate unions

 -v      verbose output

 -W      suppress warnings

 -w      always wrap response parameters in a response struct (<=1.1.4 behavior)

 -x      don't generate _XML any/anyAttribute extensibility elements

 -y      generate typedef synonyms for structs and enums

 -z1     compatibility with 2.7.6e: generate pointerrem -based arrays

 -z2     compatibility with 2.7.7 to 2.7.15: qualify element/attribute references

 -z3     compatibility with 2.7.16 to 2.8.7: qualify element/attribute references

 -z4     compatibility up to 2.8.11: don't generate union structs in std::vector

 -_      don't generate _USCORE (replace with UNICODE _x005f)infile.wsdl infile.xsd http://www... list of input sources (if none: use stdin)

soapcpp2参数中文翻译

-1      使用SOAP 1.1进行编译

-2      使用SOAP 1.1进行编译

-C      只生成客户端代码

-S      只生成服务端代码

-T      generate server autorem -test code

-L      不生成soapClientLib/soapServerLib文件(使用-i就有-L的功能,理解为将ClientLib和Client变对象)

-a      use SOAPAction HTTP/WSA header to invoke serverrem -side operations

-b      serialize byte arrays char
as string

-c      生成c源代码(没有现象) generate C source code

-dpath  生成代码路径

-e      generate SOAP RPC encoding style bindings

-fN     file split of N XML serializer implementations per file (N>=10)

-h      display help info

-Ipath  代码导入路径

-i      从SOAP结构继承,生成C++服务代理和对象

-j      通过共享SOAP结构,生成C++服务代理和对象

-k      generate data structure walkers (experimental)

-l      generate linkable modules (experimental)

-m      generate Matlab(tm) code for MEX compiler

-n      use service name to rename service functions and namespace table

-pname  使用新前缀"name"代替"soap"       save files with new prefix name instead of 'soap'

-qname  在所有声明中使用命名空间"name"(同时拥有-p功能)

-s      生成具有严格的XML验证检查反序列化代码 generate deserialization code with strict XML validation checks

-t      生成代码全部使用xsi:type类型soap/XML消息。 generate code for fully xsi:type typed SOAP/XML messaging

-u      uncomment comments in WSDL/schema output by suppressing XML comments

-v      显示版本信息(没有看到现象--生成代码没有变化)

-w      不生成WSDL和模式文件

-x      不生成XML文件

-y      包括C / C++类型访问信息的示例XML消息(没有看到现象)


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  gsoap wsdl2 soapcpp2