Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA0BCE3E0 for ; Tue, 5 Feb 2013 18:30:09 +0000 (UTC) Received: (qmail 49486 invoked by uid 500); 5 Feb 2013 18:30:09 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 49436 invoked by uid 500); 5 Feb 2013 18:30:09 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 49427 invoked by uid 99); 5 Feb 2013 18:30:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 18:30:08 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of jesus.a.castillo@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 18:30:02 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U2nH3-00061B-VN for users@cxf.apache.org; Tue, 05 Feb 2013 10:29:41 -0800 Date: Tue, 5 Feb 2013 10:29:41 -0800 (PST) From: Jesus Castillo To: users@cxf.apache.org Message-ID: In-Reply-To: References: <1359786299074-5722638.post@n5.nabble.com> <1359991318325-5722719.post@n5.nabble.com> <510FE161.9000204@talend.com> <3E499E2E-5B2E-4F69-9CED-B7A3B3291114@apache.org> <1359997355701-5722727.post@n5.nabble.com> Subject: Re: NPE on MessageModeInInterceptor when sending empty SOAPBody MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Aki, I opened a JIRA ticket. https://issues.apache.org/jira/browse/CXF-4812 Re the provider, this is how the annotations look like: @WebServiceProvider(portName="myPort", serviceName="myService") @ServiceMode(value=Service.Mode.MESSAGE) public class MyProvider implements Provider { ... } All I need is that the message reach this Provider. Rgds, Jesus. 2013/2/5 Aki Yoshida-3 [via CXF] > Hi Jesus, all, > I initially thought that an empty body might not be allowed, but BP > 1.1 seems to allow an empty body. > > http://www.ws-i.org/profiles/basicprofile-1.1-2004-08-24.html#Bindings_and_Parts > > "Use of wsdl:message elements with zero parts is permitted in Document > styles to permit operations that can send or receive envelopes with > empty soap:Bodys." > > So, it looks like it definitely needs to be handled (not just avoiding > NPE but also invoking the correct operation). Could you open a jira > ticket for this? > > And in your particular case, do you have an annotated provider impl > with multiple operations and you want the matching operation to be > chosen based on the action header in the message? (this use case seems > to correspond to what Dan mentioned). > > thanks. > regards, aki > > 2013/2/4 Jesus Castillo <[hidden email]>: > > > > Just to clarify, this is a pure SOAP1.2 messaging system. So no WSDL is > > needed or used. That section is for WSDL mainly. > > > > Jesus. > > > > > > > > > > -- > > View this message in context: > http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638p5722727.html > > > Sent from the cxf-user mailing list archive at Nabble.com. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638p5722752.html > To unsubscribe from NPE on MessageModeInInterceptor when sending empty > SOAPBody, click here > . > NAML > -- View this message in context: http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638p5722769.html Sent from the cxf-user mailing list archive at Nabble.com.