cancel
Showing results for 
Search instead for 
Did you mean: 

namespace prefix problem in http adapter response

Former Member
0 Kudos

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>

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Shabarish ;

It is resolved.

I will give full points

Former Member
0 Kudos

Thanks Shabarish ;

it is resolved.

I will you full points.

Former Member
0 Kudos

Thanks Shabarish ;

it is resolved.

I am giving you full points.

Former Member
0 Kudos

You can use the XMLAnonymizer module with your adapter (if you are using SOAP adapter for the call as HTTP adapter does not support modules) to remove the namespaces. Kindly check the following blogs for modules:

Gabriel Sagaya Selvam - Standard Adapter Framework modules in PI 7.1 u2013Part 1

/people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-1

Gabriel Sagaya Selvam - Standard Adapter Framework modules in PI 7.1 u2013Part 2

/people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-2

Regards,

Gökhan