on 04-13-2010 2:16 PM
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>
/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Shabarish ;
It is resolved.
I will give full points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Shabarish ;
it is resolved.
I will you full points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Shabarish ;
it is resolved.
I am giving you full points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.