use of javax.xml.ws.Service in project wildfly by wildfly.
the class EJBEndpointTestCase method endpointLookup.
@Before
public void endpointLookup() throws Exception {
QName serviceName = new QName("http://jbossws.org/basic", "EJB3Service");
URL wsdlURL = new URL(baseUrl, "/jaxws-basic-ejb3/EJB3Service?wsdl");
Service service = Service.create(wsdlURL, serviceName);
proxy = service.getPort(EndpointIface.class);
}
use of javax.xml.ws.Service in project wildfly by wildfly.
the class ContextHandlerEndpointTestCase method testHandlerContext.
@Test
public void testHandlerContext() throws Exception {
QName serviceName = new QName("org.jboss.as.test.integration.ws.ejb", "ContextHandlerService");
URL wsdlURL = new URL(baseUrl, "/context-handler-endpoint/ContextHandlerService/ContextHandlerEndpointImpl?wsdl");
Service service = Service.create(wsdlURL, serviceName);
ContextHandlerEndpointIface port = service.getPort(ContextHandlerEndpointIface.class);
String response = port.doSomething("hello");
Assert.assertNotNull("Response is null.", response);
}
use of javax.xml.ws.Service in project wildfly by wildfly.
the class AS1675TestCase method testEjb3EndpointInjection.
@Test
public void testEjb3EndpointInjection() throws Exception {
QName serviceName = new QName("http://jbossws.org/as1675", "EJB3Service");
URL wsdlURL = new URL(baseUrl + "/as1675/EJB3Service?wsdl");
Service service = Service.create(wsdlURL, serviceName);
EndpointIface proxy = (EndpointIface) service.getPort(EndpointIface.class);
Assert.assertEquals("Hello World!:EJB3Bean", proxy.echo("Hello World!"));
}
use of javax.xml.ws.Service in project wildfly by wildfly.
the class EjbEndpointInsideWarTestCase method testEjb3InsideWarEndpoint.
@Test
public void testEjb3InsideWarEndpoint() throws Exception {
QName serviceName = new QName("http://jbossws.org/injection", "EJB3Service");
URL wsdlURL = new URL(baseUrl, "/jaxws-injection-ejb3/EJB3Service?wsdl");
Service service = Service.create(wsdlURL, serviceName);
EndpointIface proxy = service.getPort(EndpointIface.class);
Assert.assertEquals("Hello World!:Inbound:TestHandler:EJB3Bean:Outbound:TestHandler", proxy.echo("Hello World!"));
}
use of javax.xml.ws.Service in project wildfly by wildfly.
the class InjectionTestCase method testEjb3Endpoint.
@Test
public void testEjb3Endpoint() throws Exception {
QName serviceName = new QName("http://jbossws.org/injection", "EJB3Service");
URL wsdlURL = new URL(baseUrl, "/jaxws-injection-ejb3/EJB3Service?wsdl");
Service service = Service.create(wsdlURL, serviceName);
EndpointIface proxy = service.getPort(EndpointIface.class);
Assert.assertEquals("Hello World!:Inbound:TestHandler:EJB3Bean:Outbound:TestHandler", proxy.echo("Hello World!"));
}
Aggregations