axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Detelin Yordanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4221) Axis2 should throw a meaningful fault if SOAP body is missing
Date Fri, 23 Jan 2009 11:54:59 GMT
Axis2 should throw a meaningful fault if SOAP body is missing
-------------------------------------------------------------

                 Key: AXIS2-4221
                 URL: https://issues.apache.org/jira/browse/AXIS2-4221
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.4.1
            Reporter: Detelin Yordanov
         Attachments: MissingBodyRequestResponse.txt

Hi guys,
   Currently Axis2 does not check whether an incoming SOAP message contains a SOAP body (which
is mandatory according to the spec).
Axiom does not do it either and just returns null if body is missing (see SOAPEnvelope#getBody()).

So in the case of missing body users receive a very uninformative fault:

<soapenv:Fault>
    <soapenv:Code>
        <soapenv:Value>soapenv:Receiver</soapenv:Value>
    </soapenv:Code>
    <soapenv:Reason>
        <soapenv:Text xml:lang="en-US">unknown</soapenv:Text>
    </soapenv:Reason>
    <soapenv:Detail />
</soapenv:Fault>

I think this should be handled gracefully with an according error message message.


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


Mime
View raw message