简体   繁体   中英

Generating JAX-WS client stubs for JAX-RPC web service?

Will I be able to connect to a JAX-RPC web service using a JAX-WS (wsimport) generated client stub? What are the effects of consuming a JAX-RPC web service using a JAX-WS client? Are there any advantages and disadvantages?

  1. The tool wsimport works on a WSDL file which is an XML document describing the web service.
  2. The tool wsimport does not care to the style of the service (RPC/DOCUMENT) as described in the WSDL.
  3. If the WSDL has RPC-style, it will generate the client stubs for consuming RPC-style web services and similarly for document-style.
  4. JAX-WS (which provides wsimport ) provides (or rather capable of generating ) both the style (RPC/Document) of web services and both work equally well with respective types of service end points.
  5. Here is an example of using wsimport for generating JAX-RPC client.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM