Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

SOAP to REST Example

This example shows how to expose a simple REST API that calls an existing SOAP service and transforms the result back into JSON.
It demonstrates how Membrane can be used for legacy integration scenarios where clients prefer JSON/REST but the backend only provides SOAP.

Try It Out

  1. Open a terminal at the examples/web-services-soap/rest2soap-template directory.

  2. Execute membrane.sh or membrane.cmd

  3. Call the REST endpoint:

    curl "http://localhost:2000/cities/Paris"
  4. You will receive a JSON response with the country and population extracted from the SOAP service:

    {
      "country": "France",
      "population": 11346800
    }
  5. Take a look at apis.yaml to see how it works.

Use Cases

  • Exposing legacy SOAP services as REST/JSON APIs.
  • Gradual migration from SOAP to REST without rewriting backend systems.
  • Simplifying integration for clients that cannot handle SOAP.