微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用wsimport命令生成webservice文件

前提是安装了jdk1.6版本以上,进入命令窗口,输入wsimport -d d:\webservice\ -keep -verbose http://192.168.17.172:8088/crm/ws/recompenseOnlineService?wsdl

这是jdk提供的一个生成webservice的命令,非常好用,可以输入wsimport 查看更多选项

C:\Documents and Settings\Administrator>wsimport
Missing WSDL_URI


Usage: wsimport [options] <WSDL_URI>

where [options] include:
  -b <path>                 specify jaxws/jaxb binding files or additional schemas
                            (Each <path> must have its own -b)
  -B<jaxbOption>            Pass this option to JAXB schema compiler
  -catalog <file>           specify catalog file to resolve external entity references
                            supports TR9401,XCatalog,and oasis XML Catalog format.
  -d <directory>            specify where to place generated output files
  -extension                allow vendor extensions - functionality not specified
                            by the specification.  Use of extensions may
                            result in applications that are not portable or
                            may not interoperate with other implementations
  -help                     display help
  -httpproxy:<host>:<port>  specify a HTTP proxy server (port defaults to 8080)
  -keep                     keep generated files
  -p <pkg>                  specifies the target package
  -quiet                    suppress wsimport output
  -s <directory>            specify where to place generated source files
  -target <version>         generate code as per the given JAXWS specification version.
                            version 2.0 will generate compliant code for JAXWS 2.0 spec.
  -verbose                  output messages about what the compiler is doing
  -version                  print version @R_806_4045@ion
  -wsdllocation <location>  @WebServiceClient.wsdlLocation value


Examples:
  wsimport stock.wsdl -b stock.xml -b stock.xjb
  wsimport -d generated
http://example.org/stock?wsdl

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐