JSON - SOAP - JSON conversion

Hi,

I Am trying a use case to convert a JSON to SOAP XML and Invoke SOAP call and the response should be converted back to JSON.

I Am able to convert JSON to SOAP but confused about the next steps

How to make a SOAP call?

Thanks,

Sri1920

1 Like

Apigee acts as a reverse proxy. That means

  • a client sends a request into Apigee
  • Apigee receives the request, validates it , maybe modifies it (convert JSON to XML/SOAP)
  • Apigee then sends the (maybe modified) request to the upstream (maybe its a SOAP endpoint)
  • The upstream does its thing.
  • the upstream sends the response to Apigee
  • Apigee can then inspect the response, cache it, modify it (maybe convert XML/SOAP to JSON)
  • Apigee then sends back the response to the original client

So, to answer “how to invoke a SOAP endpoint from Apigee?” … configure the TargetEndpoint to point to the SOAP endpoint. Include the JSON-to-SOAP conversion in the request flow. And then invoke the XML/SOAP-to-JSON conversion in the response flow. Done.

1 Like