Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Removing XML Declarations from Sender Payload

$
0
0

Hi Experts,

 

I am trying to get an XML file from a website for exchange rates using sender Axis Adapter. I have developed my scenario via Michal's PI tips: Exchange Rates from an XML file on a web page - REST, AXIS.

 

 

 

 

In payload i have XML declarations, which causes an exception as " <faultstring>org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.</faultstring> ".

 

a1.png

 

When i remove those XML declarations in SOAPUI and send the payload, it works successfully. But since i am getting the XML document from a Website, i cannot remove them from payload till it reaches to sender communication channel, I also have tried XMLAnonmyizerBean.  Is there any module in communication channel or anyway i can do to remove those declarations?

 

 

Note: I can see the same exception when communication channel gets payload from website  via Alert Configuration.

 

Thanks.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>