Exposing backend REST API as SOAP webservice

Hello,

we have a requirement to expose backend REST API as SOAP webservice,could somebody help us in understanding how can APIGEE help us here with a detailed summary

0 3 474
3 REPLIES 3

Not applicable

you can use xml to json, extract variable, assign message policy or scripts in the request to frame the json payload request to the Rest API. Once you get the response, you can use json to xml, extract varibale /assign message or scripts to frame the soap response. Also can use XSLT policy to frame the soap response from Rest response.

Yup.

And this is an example converting SOAP into a JSON API.

(There's a README)

apiproxy-soap-todo.zip

The hardest part will be generating the WSDL that documents the SOAP web service, if you don't have one already.

If you do have one (even if it's not perfect), you can use the SOAP proxy wizard (SOAP passthrough mode) and provide the wsdl. This will generate most of the plumbing required in your proxy, including conditional flows for all the SOAP operations as well as a conditional flow to return the wsdl.

You can then add the Xml to Json and Json to XML policies as mentioned before (and don't forget to update the target endpoint to point to your REST API)