Inability to handle faults before creating message context
----------------------------------------------------------

         Key: AXIS2-110
         URL: http://issues.apache.org/jira/browse/AXIS2-110
     Project: Apache Axis 2.0 (Axis2)
        Type: Improvement
  Components: core  
    Reporter: Eran Chinthaka


When engine receives a SOAP message it gets the stream, creates a 
StAXSOAPModelBuilder, creates a message context and put the created envelop 
(out of the builder) in to the message context. 
The constructor in the StAXSOAPModelBuilder has a code to parse the header part 
of the received SOAP message. 
Problem, if an error encountered in this constructor code (for example, two 
headet blocks found, envelope namespace wrong),  there will be an exception 
thrown from the builder with correct information. But the error handling code, 
has no information about the version of the SOAP message received. 
Engine currently sends a SOAP 1.1 message, irrespective of the version of the 
incoming faulty message.

My suggestion is to get the SOAP version initialy from the content type 
information from the transport and create a message context with that. Then 
even there is a fault in builder creation, fault handling section has enough 
information to process it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to