wsgen与wsimport命令简单说明
【转http://zhuchengzzcc.iteye.com/blog/1535066】
? 同时在刚才新建的 classes\wsdl\ 下生成了两个wsdl相关文件:
MessageJwsService.wsdl 和 MessageJwsService_schema1.xsd
?
?
?
?
?
具体使用方式可以使用wsgen -help查看
?
?
?
- Usage:?wsimport?[options]?<WSDL_URI> ????where?[options]?include: ????-b?<path>?????????????????specify?external?jaxws?or?jaxb?binding?files ??????????????????????????????(Each?<file>?must?have?its?own?-b) ????-catalog?<file>???????????specify?catalog?file?to?resolve?external?entity?refe ??rences ??????????????????????????????supports?TR9401,?XCatalog,?and?OASIS?XML?Catalog?for??mat. ????-d?<directory>????????????specify?where?to?place?generated?output?files ????-extension????????????????allow?vendor?extensions?-?functionality?not?specifie ??d ??????????????????????????????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????-s?<directory>????????????specify?where?to?place?generated?source?files ????-verbose??????????????????output?messages?about?what?the?compiler?is?doing ????-version??????????????????print?version?information ????-wsdllocation?<location>??@WebService.wsdlLocation?and?@WebServiceClient.wsdlL ??ocation?value ????Examples: ????wsimport?stock.wsdl?-b?stock.xml?-b?stock.xjb ????wsimport?-d?generated?http://example.org/stock?wsdl??