use of org.apache.camel.cxf.mtom_feature.HelloService in project camel by apache.
the class CxfMtomRouterRawModeTest method getPort.
@Override
protected Hello getPort() {
URL wsdl = getClass().getResource("/mtom.wsdl");
assertNotNull("WSDL is null", wsdl);
HelloService service = new HelloService(wsdl, HelloService.SERVICE);
assertNotNull("Service is null ", service);
Hello port = service.getHelloPort();
((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:" + port1 + "/CxfMtomRouterRawModeTest/jaxws-mtom/hello");
return port;
}
use of org.apache.camel.cxf.mtom_feature.HelloService in project camel by apache.
the class CxfMtomRouterCxfMessageModeTest method getPort.
@Override
protected Hello getPort() {
URL wsdl = getClass().getResource("/mtom.wsdl");
assertNotNull("WSDL is null", wsdl);
HelloService service = new HelloService(wsdl, HelloService.SERVICE);
assertNotNull("Service is null ", service);
Hello port = service.getHelloPort();
((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:" + port1 + "/CxfMtomRouterCxfMessageModeTest/jaxws-mtom/hello");
return port;
}
use of org.apache.camel.cxf.mtom_feature.HelloService in project camel by apache.
the class CxfMtomRouterPayloadModeTest method getPort.
protected Hello getPort() {
URL wsdl = getClass().getResource("/mtom.wsdl");
assertNotNull("WSDL is null", wsdl);
HelloService service = new HelloService(wsdl, HelloService.SERVICE);
assertNotNull("Service is null ", service);
Hello port = service.getHelloPort();
((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:" + port1 + "/CxfMtomRouterPayloadModeTest/jaxws-mtom/hello");
return port;
}
use of org.apache.camel.cxf.mtom_feature.HelloService in project camel by apache.
the class CxfMtomConsumerTest method getPort.
private Hello getPort() {
URL wsdl = getClass().getResource("/mtom.wsdl");
assertNotNull("WSDL is null", wsdl);
HelloService service = new HelloService(wsdl, serviceName);
assertNotNull("Service is null ", service);
Hello port = service.getHelloPort();
((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, MTOM_ENDPOINT_ADDRESS);
return port;
}
Aggregations