加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

使用wsimport命令生成webservice文件

发布时间:2020-12-17 00:40:22 所属栏目:安全 来源:网络整理
导读:前提是安装了jdk1.6版本以上,进入命令窗口,输入wsimport -d d:webservice -keep -verbose http://192.168.17.172:8088/crm/ws/recompenseOnlineService?wsdl 这是jdk提供的一个生成webservice的命令,非常好用,可以输入wsimport 查看更多选项 C:Docume

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

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

C:Documents and SettingsAdministrator>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 information
? -wsdllocation <location>? @WebServiceClient.wsdlLocation value


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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读