I'm having the same problem. I can return values from the generated skeleton
code, but trying to throw an excepion causes an OMException. The exception
I'm throwing was created by wsdl2java and maps to the fault I declared in
the WSDL. It looks like it should be very straighforward (the exception was
already created and declared for me, I'm just newing one and throwing it),
but it just doesn't work. My stack trace looks slightly different.

org.apache.axiom.om.OMException
        at
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
        at
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
        at
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
        at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
        at
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
        at
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:616)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
...
-- 
View this message in context: 
http://www.nabble.com/Exception-in-returning-SOAP-Fault.-tf1626630.html#a5205008
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to