Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

namespace prefix problem in http adapter response

Hi All;

I use http adapter to call a third party service. I post a XML request and it responses me as XML again..

But when I call the proxy, it gives mapping error in response. because it expects namespace prefix in the first tag of the response xml.

How can I get this xml back without any namespace?

My response xml likefollowing

<?xml version="1.0" encoding="UTF-8" ?>
    <OrderLines>
       <item>
           <DocumentNo>99000140</DocumentNoitem>
    </item>  
</OrderLines>

but the adapter expects as

<?xml version="1.0" encoding="UTF-8" ?>
    <ns0:OrderLines xmlns:ns0="http://company.com">
       <item>
           <DocumentNo>99000140</DocumentNoitem>
    </item>  
</ns0:OrderLines>

Former Member
replied

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question