Axis2 的 java2wsdl

注 cn后面跟的是带报名的类名, 改名命令需要找到.class文件

比如一般以 WEB-INF\classes 为当前目录,执行 

java2wsdl -o build/test.wsdl -cn test.adb.theinterface.ITestAdb

 

Usage: java2wsdl [options] -cn <fully qualified class name>

 

where [options] include:

  -o <output location>                    output directory

  -of <output file name>                  output file name for the WSDL

  -sn <service name>                      service name

  -l <soap address>                       address of the port for the WSDL

  -cp <class path uri>                    list of classpath entries - (urls)

  -tn <target namespace>                  target namespace for service

  -tp <target namespace prefix>           target namespace prefix for service

  -stn <schema target namespace>          target namespace for schema

  -stp <schema target namespace prefix>   target namespace prefix for schema

  -st <binding style>                     style for the WSDL

  -u <binding use>                        use for the WSDL

  -nsg <class name>                       fully qualified name of a class that implements NamespaceGenerator

  -sg <class name>                        fully qualified name of a class that implements SchemaGenerator

  -p2n [<java package>,<namespace] [<java package>,<namespace]...

                                          java package to namespace mapping for argument and return types

  -p2n [all, <namespace>]                 to assign all types to a single namespace

  -efd <qualified/unqualified>            setting for elementFormDefault (defaults to qualified)

  -afd <qualified/unqualified>            setting for attributeFormDefault (defaults to qualified)

  -xc class1 -xc class2...                extra class(es) for which schematype must be generated.

  -wv <1.1/2.0>                           wsdl version - defaults to 1.1 if not specified

  -dlb                                    generate schemas conforming to doc/lit/bare style

你可能感兴趣的:(java2ws)