You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Roberto Dorich <RD...@IntraLinks.com> on 2001/04/20 17:17:17 UTC
Getting exceptions back
Hi all,
What's the easiest way to get an exception back from the server? Right
now a fault is returned and I'm supposed to get the exception from it.
Unluckily the information inside the exception is not returned: e.g. the
message, etc. I tried using ExceptionFaultListener, but didn't know how
to get the exception instance back (it looks like all the data is
returned). Any ideas??
I'm attaching the fault.toString() for more info.
[Attributes={}] [faultCode=SOAP-ENV:Server]
[faultString=com.intralinks.api.ILEx
ception] [faultActorURI=/soap/servlet/rpcrouter] [DetailEntries=
[(0)=<detailEntry xmlns:ns1="urn:xml-soap-intralinks-workspace"
xsi:type="ns1:IL
Exception" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<localizedMessage xsi:null="true" xsi:type="xsd:string"/>
<message xsi:null="true" xsi:type="xsd:string"/>
<reason xsi:type="xsd:string">error message</reason>
</detailEntry>]
] [FaultEntries=]
Thanks,
- Roberto