Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 98737 invoked from network); 4 Dec 2007 14:05:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2007 14:05:11 -0000 Received: (qmail 24955 invoked by uid 500); 4 Dec 2007 14:04:59 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 24941 invoked by uid 500); 4 Dec 2007 14:04:59 -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 24932 invoked by uid 99); 4 Dec 2007 14:04:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 06:04:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 04 Dec 2007 14:04:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 08F6471420A for ; Tue, 4 Dec 2007 06:04:43 -0800 (PST) Message-ID: <12229835.1196777083022.JavaMail.jira@brutus> Date: Tue, 4 Dec 2007 06:04:43 -0800 (PST) From: "Thomas Diesler (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-1252) Provider PAYLOAD endpoint expects SOAP Envelope In-Reply-To: <24284698.1196776843271.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 [ https://issues.apache.org/jira/browse/CXF-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Diesler updated CXF-1252: -------------------------------- Description: /home/tdiesler/svn/jbossws/stack/cxf/trunk [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.httpbinding.HttpJAXBTestCase one-test one-test: [junit] Running org.jboss.test.ws.jaxws.samples.httpbinding.HttpJAXBTestCase [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 6.475 sec [junit] Test org.jboss.test.ws.jaxws.samples.httpbinding.HttpJAXBTestCase FAILED The endpoint is a Provider with ServiceMode == PAYLOAD @WebServiceProvider(serviceName = "ProviderService", portName = "ProviderPort", targetNamespace = "http://org.jboss.ws/provider", wsdlLocation = "WEB-INF/wsdl/Provider.wsdl") @ServiceMode(value = Service.Mode.PAYLOAD) public class ProviderBeanJAXB implements Provider { public Source invoke(Source request) { ... } } The incomming message is POST /jaxws-samples-httpbinding-jaxb/ProviderEndpoint HTTP/1.1 Content-Type: text/xml Accept: * Cache-Control: no-cache Pragma: no-cache User-Agent: Java/1.5.0_12 Host: localhost:8080 Connection: keep-alive Transfer-Encoding: chunked KermitTheFrog The endpoint throws Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope" at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:151) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:118) at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:104) Affects Version/s: 2.0.3 > Provider PAYLOAD endpoint expects SOAP Envelope > ----------------------------------------------- > > Key: CXF-1252 > URL: https://issues.apache.org/jira/browse/CXF-1252 > Project: CXF > Issue Type: Sub-task > Affects Versions: 2.0.3 > Reporter: Thomas Diesler > > /home/tdiesler/svn/jbossws/stack/cxf/trunk > [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.httpbinding.HttpJAXBTestCase one-test > one-test: > [junit] Running org.jboss.test.ws.jaxws.samples.httpbinding.HttpJAXBTestCase > [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 6.475 sec > [junit] Test org.jboss.test.ws.jaxws.samples.httpbinding.HttpJAXBTestCase FAILED > The endpoint is a Provider with ServiceMode == PAYLOAD > @WebServiceProvider(serviceName = "ProviderService", portName = "ProviderPort", targetNamespace = "http://org.jboss.ws/provider", wsdlLocation = "WEB-INF/wsdl/Provider.wsdl") > @ServiceMode(value = Service.Mode.PAYLOAD) > public class ProviderBeanJAXB implements Provider > { > public Source invoke(Source request) > { > ... > } > } > The incomming message is > POST /jaxws-samples-httpbinding-jaxb/ProviderEndpoint HTTP/1.1 > Content-Type: text/xml > Accept: * > Cache-Control: no-cache > Pragma: no-cache > User-Agent: Java/1.5.0_12 > Host: localhost:8080 > Connection: keep-alive > Transfer-Encoding: chunked > KermitTheFrog > The endpoint throws > Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope" > at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:151) > at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:118) > at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:104) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.