Search in sources :

Example 1 with GreeterImplDoc

use of org.apache.hello_world_doc_lit.GreeterImplDoc in project cxf by apache.

the class RountripTest method testOneWay.

@Test
public void testOneWay() throws Exception {
    ServerFactoryBean svrBean = new ServerFactoryBean();
    svrBean.setAddress("http://localhost/Hello2");
    svrBean.setTransportId("http://schemas.xmlsoap.org/soap/http");
    svrBean.setServiceBean(new GreeterImplDoc());
    svrBean.setServiceClass(Greeter.class);
    svrBean.setEndpointName(new QName("http://apache.org/hello_world_doc_lit", "SoapPort"));
    svrBean.setServiceName(new QName("http://apache.org/hello_world_doc_lit", "SOAPService"));
    svrBean.setWsdlLocation("testutils/hello_world_doc_lit.wsdl");
    svrBean.setBus(getBus());
    svrBean.create();
}
Also used : QName(javax.xml.namespace.QName) ServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean) GreeterImplDoc(org.apache.hello_world_doc_lit.GreeterImplDoc) Test(org.junit.Test)

Aggregations

QName (javax.xml.namespace.QName)1 ServerFactoryBean (org.apache.cxf.frontend.ServerFactoryBean)1 GreeterImplDoc (org.apache.hello_world_doc_lit.GreeterImplDoc)1 Test (org.junit.Test)1