This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic