I have a requirement from a client which wants to write a wrapper REST web service around a SOAP web service.
I am new to both SOAP and REST. Can anyone please let me know
- If we can call SOAP web service inside a REST web service?
- If yes, then how to do it in Jersey 2.0?
Thanks in advance.
- Yes
- There is nothing special about calling a SOAP service from inside a JAX-RS Resouce. Just write a JAX-WS client as described in the Java EE 7 Tutorial.
来源:https://stackoverflow.com/questions/17986498/calling-soap-in-jersey