WSDL2Java生成的文件总结如下:
Client-side Bindings:
Sample: java org.apache.axis.wsdl.WSDL2Java AddressBook.wsdl
WSDL 子句
生成的Java类
为在type区的每个条目
一个Java类
一个Holder类,如果此type被用作inout/out参数
为每个portType
一个Java接口
为每个binding
一个Stub类
为每个service
一个service接口
一个service实现(作为定位器)
Server-side Bindings:
Sample: java org.apache.axis.wsdl.WSDL2Java --server-side AddressBook.wsdl
WSDL 子句
生成的Java类
为每个binding
一个Skeleton类(若—skeletonDeploy设为true时)
一个实现模板类(供用户修改为自己的实现)
为所有的services
一个deploy.wsdd文件
一个undeploy.wsdd文件
WSDL2Java
Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI
Options:
-h, --help
print this message and exit
-v, --verbose
print informational messages
-n, --noImports
only generate code for the immediate WSDL document
-O, --timeout <argument>
timeout in seconds (default is 45, specify -1 to disable)
-D, --Debug
print debug information
-W, --noWrapped
turn off support for "wrapped" document/literal
-s, --server-side
emit server-side bindings for web service
-S, --skeletonDeploy <argument>
deploy skeleton (true) or implementation (false) in deploy.wsdd.
Default is false. Assumes --server-side.
-N, --NStoPkg <argument>=<value>
mapping of namespace to package
-f, --fileNStoPkg <argument>
file of NStoPkg mappings (default NStoPkg.properties)
-p, --package <argument>
override all namespace to package mappings, use this package
name instead
-o, --output <argument>
output directory for emitted files
-d, --deployScope <argument>
add scope to deploy.xml: "Application", "Request", "Session"
-t, --testCase
emit junit testcase class for web service
-a, --all
generate code for all elements, even unreferenced ones
-T, --typeMappingVersion
indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 JAX-RPC compliant. 1.2 indicates SOAP 1.1 encoded.)
-F, --factory <argument>
name of a custom class that implements GeneratorFactory interface (for extending Java generation functions)
-H, --helperGen
emits separate Helper classes for meta data
-U, --user <argument>
username to access the WSDL-URI
-P, --password <argument>
password to access the WSDL-URI</argument></argument></argument></argument></argument></argument></argument></value></argument></argument></argument>
分享到:
相关推荐
wsdl2java工具 修改WSDL2Java(URL).bat后直接双击运行即可 编辑 WSDL2Java(URL).bat set Axis_Lib=.\lib //引用包 set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib% set Output_Path=.\source //输出目录 set Package...
wsdl2java.bat使用方法 wsdl2java包 axis所有的包
1、安装jdk Java开发环境 2、编辑(包名,输出路径,wsdl)参数并运行WSDL2Java(URL).bat或者WSDL2Java(file).bat后,将在source中生成WebService客户端代码。 3、直接使用生成的代码调用WebService服务即可。
WSDL2JavaWSDL2JavaWSDL2JavaWSDL2JavaWSDL2JavaWSDL2JavaWSDL2Java
2、解压之后,编辑(包名,输出路径,wsdl)参数并运行WSDL2Java(URL).bat或者WSDL2Java(file).bat后,将在source中生成WebService客户端代码。 3、直接使用生成的代码调用WebService服务即可。
抛出无法找到主类:org.apache.axis.wsdl.WSDL2Java(Throws Could not find main class: org.apache.axis.wsdl.WSDL2Java)。 添加本文的jar包压缩包解压出来的所有jar包到当前使用的java.exe 命令的lib目录下的ext...
wsdl2Java的脚本wsdl2Java的脚本wsdl2Java的脚本wsdl2Java的脚本wsdl2Java的脚本wsdl2Java的脚本wsdl2Java的脚本
初探WSDL2JAVA工具的使用初探WSDL2JAVA工具的使用初探WSDL2JAVA工具的使用初探WSDL2JAVA工具的使用初探WSDL2JAVA工具的使用初探WSDL2JAVA工具的使用初探WSDL2JAVA工具的使用
wsdl2java wsdl2java wsdl2java 生成客户端服务端代码
使用cxf wsdl2java生成webservice客户端命令
Java2WSDL和WSDL2Java操作指南.doc
WSDL2Java--根据wsdl生成Java客户端工具
把wsdl文件转换成java类 使用wsdl2Java工具
调用WSDL2Java需要相关jars,使用-cp添加进来,不支持使用通配符。提醒:Linux下jar之间使用冒号隔开:,windows下jar之间使用分号隔开 调用方法 java -cp mail-1.4.jar;saaj-api-1.3.jar;jaxrpc-1.1.jar;commons-...
WSDL2Java.rar
包含wsdl2java工具及工程所需jar包
axis2 wsdl2java的使用说明和简单程序.docx
wsdl2java命令使用,所需要配置的 环境变量指定的bin包
wsdl2java.bat