Search in sources :

Example 1 with HelloService

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;
}
Also used : Hello(org.apache.camel.cxf.mtom_feature.Hello) HelloService(org.apache.camel.cxf.mtom_feature.HelloService) URL(java.net.URL)

Example 2 with HelloService

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;
}
Also used : Hello(org.apache.camel.cxf.mtom_feature.Hello) HelloService(org.apache.camel.cxf.mtom_feature.HelloService) URL(java.net.URL)

Example 3 with HelloService

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;
}
Also used : Hello(org.apache.camel.cxf.mtom_feature.Hello) HelloService(org.apache.camel.cxf.mtom_feature.HelloService) URL(java.net.URL)

Example 4 with HelloService

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;
}
Also used : Hello(org.apache.camel.cxf.mtom_feature.Hello) HelloService(org.apache.camel.cxf.mtom_feature.HelloService) URL(java.net.URL)

Aggregations

URL (java.net.URL)4 Hello (org.apache.camel.cxf.mtom_feature.Hello)4 HelloService (org.apache.camel.cxf.mtom_feature.HelloService)4