Layer7 API Management

  • 1.  Soap call

    Posted Dec 18, 2017 03:08 PM

    Hi All,

    I have a requirement to consume a soap service ,

    I have a wsdl file and the operation name and the json input ,i need to convert  json to xml and send it to the endpoint.

    Do we have any sample policies  for consuming the soap .and converting json to xml and sending it.



  • 2.  Re: Soap call
    Best Answer

    Posted Dec 20, 2017 01:46 PM

    We had a similar problem in supporting a ws-security service- you might find some info in that thread.

    The suggestion we got from support was to use the wsdl to generate a policy, and then create a separate policy that calls the first. I found that separation of concerns made it a bit easier to manage. There were other comments that this isn't needed and you could work with just one policy.

    The generate policy from wsdl task creates some artifacts that you can't get working with assertions directly (I think!), and they may or may not be needed in your case.