use of org.jboss.as.test.integration.ws.wsrm.generated.ReliableService in project wildfly by wildfly.
the class ReliableServiceTestCase method consumeOneWayService.
private void consumeOneWayService() throws Exception {
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "ReliableService");
URL wsdlURL = new URL(baseUrl, "ReliableService?wsdl");
Service service = Service.create(wsdlURL, serviceName, new UseNewBusFeature());
ReliableService proxy = (ReliableService) service.getPort(ReliableService.class);
BindingProvider bp = (BindingProvider) proxy;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, new URL(baseUrl, "ReliableService").toString());
proxy.writeLogMessage();
}
use of org.jboss.as.test.integration.ws.wsrm.generated.ReliableService in project wildfly by wildfly.
the class ReliableServiceTestCase method consumeHelloService.
private void consumeHelloService() throws Exception {
QName serviceName = new QName("http://www.jboss.org/jbossws/ws-extensions/wsrm", "ReliableService");
URL wsdlURL = new URL(baseUrl, "ReliableService?wsdl");
Service service = Service.create(wsdlURL, serviceName, new UseNewBusFeature());
ReliableService proxy = (ReliableService) service.getPort(ReliableService.class);
BindingProvider bp = (BindingProvider) proxy;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, new URL(baseUrl, "ReliableService").toString());
Assert.assertEquals("Hello Rosta!", proxy.sayHello("Rosta"));
}
Aggregations