Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C89B4F558 for ; Tue, 7 May 2013 09:23:19 +0000 (UTC) Received: (qmail 36961 invoked by uid 500); 7 May 2013 09:23:18 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 36353 invoked by uid 500); 7 May 2013 09:23:17 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 36304 invoked by uid 99); 7 May 2013 09:23:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 09:23:17 +0000 Date: Tue, 7 May 2013 09:23:16 +0000 (UTC) From: "Hudson (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-4221) Axis2 should throw a meaningful fault if SOAP body is missing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13650649#comment-13650649 ] Hudson commented on AXIS2-4221: ------------------------------- Integrated in Axis2 #2274 (See [https://builds.apache.org/job/Axis2/2274/]) Throw a descriptive Axis fault message when SOAP body is null in the request, Fixed AXIS2-4221 (Revision 1479351) Fixed AXIS2-4221, check for soap body after build soap envelop (Revision 1479332) Result = SUCCESS shameera : Files : * /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOnlyMessageReceiver.java * /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/rpc/receivers/RPCInOutAsyncMessageReceiver.java * /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/rpc/receivers/RPCMessageReceiver.java shameera : Files : * /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java > Axis2 should throw a meaningful fault if SOAP body is missing > ------------------------------------------------------------- > > Key: AXIS2-4221 > URL: https://issues.apache.org/jira/browse/AXIS2-4221 > Project: Axis2 > Issue Type: Bug > Components: kernel > Affects Versions: 1.4.1 > Reporter: Detelin Yordanov > Assignee: Shameera Rathnayaka > Fix For: 1.7.0, 1.6.3 > > 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:Receiver > > > unknown > > > > 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: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org