[ 
https://issues.apache.org/jira/browse/CXF-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Diesler reassigned CXF-1252:
-----------------------------------

    Assignee: Daniel Kulp  (was: Thomas Diesler)

The wsdl now uses

  <binding name='ProviderBinding' type='tns:Provider'>
    <http:binding verb='POST'/>
    <operation name='echo'>
      <http:operation location='echo'/>
      <input>
        <mime:content type="text/xml"/>
      </input>
      <output>
        <mime:content type="text/xml"/>
      </output>
    </operation>
  </binding>
  <service name='ProviderService'>
    <port binding='tns:ProviderBinding' name='ProviderPort'>
      <http:address location='REPLACE_WITH_ACTUAL_URL'/>
    </port>
  </service>

and I get

org.apache.cxf.BusException: No binding factory for namespace 
http://schemas.xmlsoap.org/wsdl/http/ registered.
        at 
org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:82)
        at 
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:87)
        at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:108)
        at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:147)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:288)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:228)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:179)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:341)


> 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
>            Assignee: Daniel Kulp
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [EMAIL PROTECTED] 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<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(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.

Reply via email to