Lokesh Sajjan
Lokesh Sajjan

Reputation: 21

How Can I convert REST webservice to SOAP service

I am using REST web services in my project, and creating JSON services. But My project is also related to some other project . that will accept only SAOP webservies . I want to convert REST json to SAOP webservices .

Please somebody help t over come this problem .

I am using CXF API for creating JSONS.

Upvotes: 2

Views: 10508

Answers (1)

hImAnShU
hImAnShU

Reputation: 103

Your same web service can respond to SOAP (XML) and REST (JSON) request. As stated in comments, you have to make it work (no automation here). Although you don't need to re-write the code. It's just configuration and annotations.

Follow this link - http://cxf.apache.org/docs/jax-rs-and-jax-ws.html

Upvotes: 1

Related Questions