axis1.4 WSDL2Java 命令详解

 

Usage:
  java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI
Options:

-h, --help

打印帮助信息后退出

-v, --verbose

打印报告信息

-n, --noImports

只生成直接的WSDL代码文档

-O, --timeout <argument>

超时秒数(默认45秒, -1表示不限定)

-D, --Debug

打印调试信息

-W, --noWrapped

关闭装订(wrapped)文档/文字支持

-s, --server-side

为web service发布服务端绑定

-S, --skeletonDeploy <argument>

在deploy.wsdd中展开纲要(true)或执行(false)。
默认为false。假定server-side.

-N, --NStoPkg <argument>=<value>

命名空间到包的映射

-f, --fileNStoPkg <argument>

命名空间到包的映射文件(默认为NStoPkg.properties)

-p, --package <argument>

用包名称覆盖所有的命名空间到包的映射

-o, --output <argument>

发行文件的输出目录

-d, --deployScope <argument>

增加范围到deploy.xml: Application(应用), Request(请求), Session(会话)

-t, --testCase

为web service发行junit测试用例类

-a, --all

为所有元素生成代码,包括未引用的元素

-T, --typeMappingVersion

指示1.1或1.2版. 默认为1.1版(SOAP 1.1适用JAX-RPC. 1.2标志SOAP 1.1编码.)

-F, --factory <argument>

执行GeneratorFactory接口的用户类名称(扩展Java generation函数)

-i, --nsInclude <namespace>

包含在生成代码中的特定命名范围(默认为所有命名空间,除非用-x选项)

-x, --nsExclude <namespace>

从生成代码中排除的特定命名空间(默认为none,排除直到第一个用-i选项包含的命名空间)

-p, --property <name>=<value>

用户GeneratorFactory的属性名称和值

-H, --helperGen

为meta数据发行分离Helper类

-U, --user <argument>

访问WSDL-URI的用户名

-P, --password <argument>

访问WSDL-URI的密码

-c, --implementationClassName <argument> 用该项作为实现类

 

 

-D -u http://172.16.1.55:7001/SiteUtil/SiteUtil?WSDL
The wsdl URI has already been specified as, D:\SOAP_A_WSDL\AdminService.wsdl. It cannot be specified again as D:\SOAP_A_WSDL\SOAPMonitorService.wsdl.
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
        -q, --quiet
                do not print any informational or debug messages (except err
                ors)
        -s, --server-side
                emit server-side bindings for web service
        -S, --skeletonDeploy <argument>
                deploy skeleton (true) or implementation (false) in deploy.w
                sdd. 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.wsdd: "Application", "Request", "Session
                "
        -t, --testCase
                emit junit testcase class for web service
        -a, --all
                generate code for all elements, even unreferenced ones
        -T, --typeMappingVersion <argument>
                indicate 1.1 or 1.2. The default is 1.1 (SOAP 1.1 JAX-RPC c
                ompliant. 1.2 indicates SOAP 1.1 encoded.)
        -F, --factory <argument>
                name of a custom class that implements GeneratorFactory inte
                rface (for extending Java generation functions)
        -H, --helperGen
                emits separate Helper classes for meta data
        -B, --buildFile
                emit Ant Buildfile for web service
        -U, --user <argument>
                username to access the WSDL-URI
        -P, --password <argument>
                password to access the WSDL-URI
        -X, --classpath
                additional classpath elements
        -i, --nsInclude <argument>
                include namespace in generated code
        -x, --nsExclude <argument>
                exclude namespace from generated code
        -c, --implementationClassName <argument>
                custom name of web service implementation
        -u, --allowInvalidURL
                emit file even if WSDL endpoint URL is not a valid URL
        -w, --wrapArrays
                Prefers building beans to straight arrays for wrapped XML ar
                ray types (defaults to off).

转:http://hi.baidu.com/meichebao/item/2875d31eca0960cd39cb3097

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值