Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 3762 invoked from network); 20 Nov 2006 03:12:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2006 03:12:24 -0000 Received: (qmail 65970 invoked by uid 500); 20 Nov 2006 03:12:34 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 65958 invoked by uid 500); 20 Nov 2006 03:12:34 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 65949 invoked by uid 99); 20 Nov 2006 03:12:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Nov 2006 19:12:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Nov 2006 19:12:24 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CDBBB7142DC for ; Sun, 19 Nov 2006 19:12:03 -0800 (PST) Message-ID: <33145056.1163992323839.JavaMail.jira@brutus> Date: Sun, 19 Nov 2006 19:12:03 -0800 (PST) From: "maomaode (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Closed: (CXF-247) HTTP POST SOAP Requests not working. In-Reply-To: <31315360.1163712757140.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/CXF-247?page=all ] maomaode closed CXF-247. ------------------------ Resolution: Fixed > HTTP POST SOAP Requests not working. > ------------------------------------ > > Key: CXF-247 > URL: http://issues.apache.org/jira/browse/CXF-247 > Project: CXF > Issue Type: Bug > Components: Bus > Affects Versions: 2.0-M1 > Reporter: Jonathan Hall > Assigned To: maomaode > Attachments: BodyNotRequired.patch, BodyRequired.patch > > > When sending a request in the form of the example below, I recieve a no such method Body error. > > > > 827635 > > > > This is caused by a .getLocalName() call returning the element in WrappedInInterceptor.java. As far as I am aware, all SOAP messages require a body, so the following should fix it: > WrappedInInterceptor.java > public void handleMessage(Message message) { ... > if (operation == null) { > // Added code > try { > xmlReader.nextTag(); > } catch (Exception e) { > throw new Fault(new org.apache.cxf.common.i18n.Message("NO_OPERATION_ELEMENT", BUNDLE)); > } > // End of added code > String local = xmlReader.getLocalName(); ... > If I am mistaken and a Body element is not always required : > public void handleMessage(Message message) { ... > if (operation == null) { > // Added code > if (xmlReader.getLocalName().equals("Body")) { > try { > xmlReader.nextTag(); > } catch (Exception e) { > throw new Fault(new org.apache.cxf.common.i18n.Message("NO_OPERATION_ELEMENT", BUNDLE)); > } > } > // End of added code > String local = xmlReader.getLocalName(); ... -- 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