cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: [jira] Commented: (CXF-1252) Provider PAYLOAD endpoint expects SOAP Envelope
Date Thu, 06 Dec 2007 14:30:52 GMT
On Wednesday 05 December 2007, Glen Mazza wrote:
> BTW, is Thomas a CXF committer?

Nope.  (well, not yet. :-)  He's one of the leads for the JBoss WS stuff.   
One of the projects they have is to make the JBoss WS stuff plugable 
with different implementations.   They currently have implementations 
for their own native version, metro, and CXF.    They have their own 
test suite that goes beyond the JAX-WS tck  (the jax-ws tck probably 
should test some of this stuff) and the bugs he is logging are related 
to issues found with their test suite.

Dan


> Glen
>
> Am Mittwoch, den 05.12.2007, 01:13 -0800 schrieb Thomas Diesler (JIRA):
> > [
> > https://issues.apache.org/jira/browse/CXF-1252?page=com.atlassian.ji
> >ra.plugin.system.issuetabpanels:comment-tabpanel#action_12548599 ]
> >
> > Thomas Diesler commented on CXF-1252:
> > -------------------------------------
> >
> > I agree, let me fix the provided wsdl.
> > BTW, in cases like this it would be helpful if the issue could be
> > assigned back to me.
> >
> > > 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.HttpJAXBTestCas
> > >e 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<Source>
> > > {
> > >    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
> > > <?xml version="1.0" encoding="UTF-8"?><ns2:user
> > > xmlns:ns2="http://org.jboss.ws/httpbinding"><string>Kermit</string
> > >><qname>TheFrog</qname></ns2:user> 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(SOAPP
> > >artImpl.java:151) at
> > > com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartI
> > >mpl.java:118) at
> > > com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(Env
> > >elopeFactory.java:104)



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message