Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes [AXIS 1.4] Get multiple Faults in a catch AxisFault block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "[AXIS 1.4] Get multiple Faults in a catch AxisFault block" Watch "[AXIS 1.4] Get multiple Faults in a catch AxisFault block" New topic
Author

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

Florian Girault
Greenhorn

Joined: Sep 05, 2011
Posts: 1
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
 
subject: [AXIS 1.4] Get multiple Faults in a catch AxisFault block
 
Similar Threads
WebSphere 6.1 encoding exception
Axis - no message in custom exception
Not able to invoke webservice
Error : Axis Engine Cudn't find the target
hi there..i hava a problem with the apache axis..