jdk6后原生支持webservice
jdk6后原生支持webservice,不再需要client调用的时候导入大量的jar
wsimport -keep http://xxx/xxx?wsdl
wsimport -p tcClient -extension http://xxx/xxx.asmx?wsdl(c#链接) wsdl中包括了SOAP1.2绑定,使用"-extension"
即可在当前目录生成客户端,-keep表示生成.java文件
-d (directory): Specify where to place generated output files -b (path): Specify external JAX-WS or JAXB binding files (Each (file) must have its own -b) -catalog: Specify catalog file to resolve external entity references, it supports TR9401, XCatalog, and OASIS XML Catalog format. Please read the XML Entity and URI Resolvers document or see simport_catalog sample. -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 an HTTP proxy server (port defaults to 8080) -keep: Keep generated files -p: Specifying a target package via this command-line option, overrides any wsdl and schema binding customization for package name and the default package name algorithm defined in the specification -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.wsdlLocation value