Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

JSON to XML Policy: Re-sequence XML nodes based on Schema

I am working on a proxy to convert Soap Service to Rest API that would allow JSON payload. It's using JSON to XML polity to convert JSON payload to XML. It works fine if incoming JSON elements are in sequence specified in wsdl but if JSON elements are not in order, call to soap service fails since it expects XML elements in specific order according to WSDL.

How can i reorder XML generated from JSON to XML policy according to the schema?

Appriciate any help.

Thanks.

1 14 2,888
14 REPLIES 14