Creating JAX-WS client stubs for the JAX-RPC web service?

Can I connect to the JAX-RPC web service using the client-created JAX-WS (wsimport)? What are the implications of using the JAX-RPC web service using the JAX-WS client? Are there any advantages and disadvantages?

+4
source share
1 answer
  • The wsimport tool works with a WSDL file, which is an XML document that describes a web service.
  • The wsimport tool wsimport not related to the service style (RPC / DOCUMENT) as described in the WSDL.
  • If the WSDL has an RPC style, it will generate client stubs for using RPC-style web services and similarly for a document style.
  • JAX-WS (which wsimport provides) provides (or rather is able to generate) both the style (RPC / Document) of web services and both work equally well with the corresponding types of service endpoints.
  • Here is an example using wsimport to generate a JAX-RPC client.

Hope this helps.

+5
source

Source: https://habr.com/ru/post/1433518/


All Articles