SOAPProcessingException faultcode not received 
-----------------------------------------------

                 Key: AXIS2-2507
                 URL: https://issues.apache.org/jira/browse/AXIS2-2507
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
            Reporter: Nikhil Thaker


Detailed description 
FaultCode from SOAPProcessingException is not set correctly in the SOAPFault 
Response sent back to the client.
Here's a SOAPFault Envelope with empty fault code when a bad soap envelope 
namespace is sent 


<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:wsa="http://www.w3.org/2005/08/addressing";><soapenv:Header><wsa:Action>http://www.w3.org/
2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faul
tcode></faultcode><faultstring>Only SOAP 1.1 or SOAP 1.2 messages are supported 
in the
system</faultstring><detail><Exception>org.apache.axis2.AxisFault: Only SOAP 
1.1 or SOAP 1.2 messages
are supported in the system; nested exception is:
        org.apache.axiom.soap.SOAPProcessingException: Only SOAP 1.1 or SOAP 
1.2 messages are supported in the system&#xD;
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)&#xD;
        at 
com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:871)&#xD;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)&#xD;
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)&#xD;
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:995)&#xD;
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)&#xD;
        at 
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)&#xD;
        at 
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)&#xD;
        at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)&#xD;
        at 
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)&#xD;
        at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:111)&#xD;
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)&#xD;
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)&#xD;
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)&#xD;
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.j
ava:214)&#xD;
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)&
;#xD;
        at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)&#xD;
        at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)&#xD;
        at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)&#xD;
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)&#xD;
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)&#xD;
        at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)&#xD;
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)&#xD;
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)&#xD;
Caused by: org.apache.axiom.soap.SOAPProcessingException: Only SOAP 1.1 or SOAP 
1.2 messages are supported in the
system&#xD;
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:252)&#xD;
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:192)&#xD;
        at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:129)&#xD;
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:176)&#xD;
        at 
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.&lt;init&gt;(StAXSOAPModelBuilder.java:124)&#xD;
        at 
org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:44)&#xD;
        at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:130)&#xD;
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:263)&#xD;
        ... 23 more&#xD;
</Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

 
 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to