Skip to Content
avatar image
Former Member

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>

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Apr 13, 2010 at 01:22 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2010 at 01:35 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2010 at 01:43 PM

    Thanks Shabarish ;

    it is resolved.

    I am giving you full points.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2010 at 01:44 PM

    Thanks Shabarish ;

    it is resolved.

    I will you full points.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2010 at 01:48 PM

    Thanks Shabarish ;

    It is resolved.

    I will give full points

    Add comment
    10|10000 characters needed characters exceeded