axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shameera Rathnayaka (JIRA)" <>
Subject [jira] [Updated] (AXIS2-4221) Axis2 should throw a meaningful fault if SOAP body is missing
Date Wed, 07 Nov 2012 18:04:12 GMT


Shameera Rathnayaka updated AXIS2-4221:

    Attachment: trunk.patch

Hi devs, 

I have fixed this for current trunk. please review and commit. If it is required i can provide
patches for previous versions too. 

> Axis2 should throw a meaningful fault if SOAP body is missing
> -------------------------------------------------------------
>                 Key: AXIS2-4221
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4.1
>            Reporter: Detelin Yordanov
>            Assignee: Shameera Rathnayaka
>         Attachments: MissingBodyRequestResponse.txt, MIssingBodyStacktrace.txt, trunk.patch
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message