Hi all,

I'm sending a JSON like following to ESB
{
attributes:[attr1,attr2,attr2]
}

At my proxy service I need to create a payload factory like following using
above given input.

<payloadFactory>
    <format>
        <attributes>
            <attribute>attr1</attribute>
            <attribute>attr2</attribute>
<attribute>attr3/attribute>
         </attributes >
     </format>
     <args/>
 </payloadFactory>

But I couldn't figure out a way to iterate over that array and generate
above PayloadFactory mediator. Can someone please suggest me a way to do
this?

Thanks
Dimuthu
-- 
Dimuthu Upeksha
Engineering Intern
WSO2 inc.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to