Consuming JAX-RPC with JAX-WS

215 Views Asked by At

Will I be able to consumie JAX-RPC web service using a JAX-WS client ? What are the effects of consuming a JAX-RPC web service using a JAX-WS client? Are there any advantages and disadvantages?

1

There are 1 best solutions below

2
Mizuki On

The main difference is

JAX-WS document style web services can be validated against predefined schema

but JAX-RPC is not. Default SOAPBinding style is Document type. If you want to switch to RCP just change in annotation as follow.

@SOAPBinding(style = Style.RPC)

More details difference-between-rpc-and-document