Forum Discussion

manashree_rao's avatar
11 years ago

Send and receive xml from Lithium Custom component to endpoint

Hi,

   I am getting a xml response from rest call in custom component. I want to send this xml as it is to an endpoint. Currently I am doing this using jquery post call. But I am not able to read this xml response in endpoint.

 

   If I send this xml response as data variable in Ajax call with contentType:xml. How can I read this in endpoint?

 

Thanks,

Manashree

  • manashree_rao  use following to read your xml sent over from custom component in endpoint

     

    <#assign xml_data= http.request.parameters.name.get("xml_data","") />

    ${xml_data}

     

    Let me know if this helps.

1 Reply

  • manashree_rao  use following to read your xml sent over from custom component in endpoint

     

    <#assign xml_data= http.request.parameters.name.get("xml_data","") />

    ${xml_data}

     

    Let me know if this helps.