We consume the web service of third party. Whenever they update the XML schema like add the new element we got the following error message.
"SAXException: Invalid Element ... "
Is there any way in AXIS to ask skip the additional element received on XML while parsing it?
I have generated web service client using AXIS earlier i used to receive XML as below
<Flight>
<AirlineCode>AB</AirlineCode>
</Flight>
and everything was working fine. But now i am getting an additional tag in response.
<Flight>
<AirlineCode>AB</AirlineCode>
<OtherCode>XX</OtherCode>
</Flight>
And for that i am getting "Invalid Element" Exception.
Thanks
Apache Axis2 version 1.7.0-SNAPSHOT has the ability to ignore unexpected elements by compiling with the -Eiu
switch.
Downloads for 1.7.0-SNAPSHOT
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With