[jboss-user] [JBossWS] - problem throwing SOAPFaultException

omatzura do-not-reply at jboss.com
Wed Oct 4 08:58:32 EDT 2006


Hello,

I want to throw a custom SOAP Fault so I am trying to throw a SOAPFaultException from within my EJB21 Webservice:

throw new SOAPFaultException( new QName( "test" ), "faultString", "faultActor", detail );

unfortunately, this get serialized as

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  |    <env:Header/>
  |    <env:Body>
  |       <env:Fault>
  |          <faultcode>env:Client</faultcode>
  |          <faultstring>java.rmi.ServerException: RuntimeException; nested exception is: 
  | 	javax.xml.rpc.soap.SOAPFaultException: faultString</faultstring>
  |       </env:Fault>
  |    </env:Body>
  | </env:Envelope>

I was hoping to get my actual faultString/faultActor values in the returned fault.. 

any solution/workaround available?

regards!

/Ole
eviware.com

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976010#3976010

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976010



More information about the jboss-user mailing list