Hello,


I'm using WebService with JBoss and Axis 1.0.
My EJBs throw RemoteException, as usual, but alse custom exceptions, extending java.lang.Exception.

This exception appears in the .wsdd file like this :

<wsdl:message name="RemoteFonctionnelException">
 <wsdl:part name="silo" type="xsd:int"/>
</wsdl:message>

Everything is working fine with system exception (seen as remoteException, so ...)


But, when my EJBs throw this kind of custom exception, I never get reference of this exception in soap envelope. I get a kind of myException.toString() message ...


Here is a response :


<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
 <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
   <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.userException</faultcode>
   <faultstring>fr.gouv.dgi.adelie.silocommun.RemoteFonctionnelException</faultstring>
   <detail>
    <ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">fr.gouv.dgi.adelie.silocommun.RemoteFonctionnelException&#xd;

        <... SNIP STACKTRACE>

        </ns2:stackTrace>
   </detail>
  </SOAP-ENV:Fault>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


How can I unserialize this exception if the structure of the exception is not respected in the reponse ?


Thanks



Damien Lecan

Reply via email to