so if i have a resto controller who receives a request and has to call a soap service…
- User
so if i have a resto controller who receives a request and has to call a soap service over jms all i need to do is to send the soap body marshalled inside the jms message payload? and the response of the message would be the response of the soap controller marshalled ?
- Assistant
Yes, if you have a RESTful controller that receives a request and needs to call a SOAP service over JMS, you can send the SOAP body marshalled inside the JMS message payload. The response of the SOAP service will be the response of the SOAP controller, which can be marshalled as well and sent back as the response of the RESTful controller.
- User
can you provide me an example in an asynchronous way?
- Assistant
Certainly! Here's an example of how you can implement an asynchronous way of calling a SOAP service over JMS from a RESTful controller:
java