Skip to Content
0
Apr 19, 2018 at 06:18 AM

XML to JSON on Cloud Connector

733 Views

I have the following scenario in SCPI: I receive an XML request which I need to convert to a JSON format and then send an HTTP request to an external service. The response message should be returned to the sender.

My scenario looks like this:

My JSON message looks good in the logging step "store JSON request". When I'm using Postman to test this message, I get a good result. However, when I'm using SCPI to send the JSON message, I get "No JSON found in POST data" as response. In Postman I get this response when I'm sending an empty payload.

When I'm using a content modifier to directly set the message body I get a good response. It looks like the XML to JSON converter somehow messes up the payload:

Any ideas on how to get this scenario working?

Attachments

scenario.png (30.9 kB)
converter.jpg (14.7 kB)