Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[AXIS 1.4] Get multiple Faults in a catch AxisFault block

 
Florian Girault
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using a webservice that can throw multiple exceptions in the same response :


<soapenv:Fault xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<faultcode>Functional</faultcode>
<faultstring xsi:type="xs:string">ERROR 1</faultstring>
</soapenv:Fault>
<soapenv:Fault xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<faultcode>Functional</faultcode>
<faultstring xsi:type="xs:string">ERROR 2</faultstring>
</soapenv:Fault>
<soapenv:Fault xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<faultcode>Functional</faultcode>
<faultstring xsi:type="xs:string">ERROR 3</faultstring>
</soapenv:Fault>

Does anyone have an idea of how to get all those 3 faults when catching an AxisFault exception in Java ?
It seems only the first fault is caught, and whenever I try to print the AxisFault stack, only ERROR 1 appears.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic