Hi Guys,

I am very new to WSO2.
I Have used a Payload Factory and I have inserted a simple XML as payload
in it. How do I print the payload of Payload Factory and view it in console
using Log Mediator?

My sample code is below:-

<proxy name="PayloadFactoryTest" startOnLoad="true" transports="http https"
xmlns="http://ws.apache.org/ns/synapse";>
    <target>
        <inSequence>
            <payloadFactory description="MyPayload" media-type="xml">
                <format>
                    <Deatils>
                        <payload>
                            <Persons>
                             <Names>
                                <A>value</A>
                                 <B>value</B>
                                  <C>value</C>
                                </Names>
                               </Persons>
                        </payload>
                    </Deatils>
                </format>
                <args/>
            </payloadFactory>
        </inSequence>
        <outSequence>
            <respond/>
        </outSequence>
        <faultSequence/>
    </target>
</proxy>

Thank you,
Aman
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to