Daniel,

This is with version 2.5.0.

Here is the code I am using to create the service just in case the way I am
creating the service is causing the the code to use the wrong invoker:

public class FirstCxfServlet extends CXFNonSpringServlet {

    @Override
    protected void loadBus(ServletConfig sc) {
        super.loadBus(sc);
        
        Bus bus = this.getBus();
        BusFactory.setDefaultBus(bus); 
        JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
        factory.setBus(bus);
        factory.setServiceName(new QName("http://mediStor.org/x-rays";,
"xRayStorage"));
        factory.setEndpointName(new QName("http://mediStor.org/x-rays";,
"XRaySOAPPort"));  
        factory.setServiceClass(FirstService.class);
        factory.setAddress("/webservices2");
        factory.setWsdlLocation("test.wsdl");
        Server srv = factory.create();  
    }


wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="XrayStorage"
    targetNamespace="http://mediStor.org/x-rays";
    xmlns="http://schemas.xmlsoap.org/wsdl/";
    xmlns:tns="http://mediStor.org/x-rays";
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
    xmlns:xsd1="http://mediStor.org/types/";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
    
    <types>
        <schema targetNamespace="http://mediStor.org/types/";
            xmlns="http://www.w3.org/2001/XMLSchema";>
            <complexType name="xRayType">
                <sequence>
                    <element name="patientName" type="xsd:string" />
                    <element name="patientNumber" type="xsd:int" />
                    <element name="imageData" type="xsd:base64Binary" />
                </sequence>
            </complexType>
            <element name="xRay" type="xsd1:xRayType" />
        </schema>
    </types>
    
    <message name="storRequest">
        <part name="record" element="xsd1:xRay"/>
    </message>
    <message name="storResponse">
        <part name="success" type="xsd:boolean"/>
    </message>
    
    <portType name="xRayStorage">
        <operation name="store">
            <input message="tns:storRequest" name="storRequest"/>
            <output message="tns:storResponse" name="storResponse"/>
        </operation>
    </portType>
    
    <binding name="xRayStorageSOAPBinding" type="tns:xRayStorage">
        <soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="store">
            <soap12:operation soapAction="" style="document"/>
            <input name="storRequest">
                <soap12:body use="literal"/>
            </input>
            <output name="storResponse">
                <soap12:body use="literal"/>
            </output>
        </operation>
    </binding>
    
    <service name="xRayStorage">
        <documentation>blah, blah, blah</documentation>
        <port name="XRaySOAPPort" binding="tns:xRayStorageSOAPBinding">
            <soap12:address location="http://localhost:8080/x-rays"/>
        </port>

    </service>
</definitions>

--
View this message in context: 
http://cxf.547215.n5.nabble.com/WebServiceContext-with-WebServiceProvider-tp5127015p5132840.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to