Hi Team, I have following requirment. My Apigee Proxy receiving JSON Data and will create a SOAP Request.
Samples are :-
SOAP :-
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Magento">
<soapenv:Header/>
<soapenv:Body>
<urn:main>
<sessionId>?</sessionId>
<productsData>
<!--Zero or more repetitions:-->
<complexObjectArray>
<!--Optional:-->
<product_id>?</product_id>
<!--Optional:-->
<qty>?</qty>
</complexObjectArray>
</productsData>
</urn:main>
JSON Incoming Sample :-
{
"main":
{
"sessionId":"696",
"productdata":[{"product_id":"pp1","qty":"5"},{"product_id":"pp2","qty":"8"}]
}
}
This product data can be multiple times of which we dont have control, Now we need to build soap request such that , whatever number of productdata we receive that much tags get build in soap request For this JSON input ......
SOAP Req should be :-
<urn:main>
<sessionId>696</sessionId>
<productsData>
<complexObjectArray>
<product_id>pp1</product_id>
<qty>5</qty>
</complexObjectArray>
<complexObjectArray>
<product_id>pp2</product_id>
<qty>8</qty>
</complexObjectArray>
</productsData>
</urn:main>
But problem is I am not able to configure policies for this kind of requirment , please provide a sample policy for same Or give me pointers where this requirment is documented in your support docs so that i can go through them.
Thanks in Advance