use of org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface in project wildfly by wildfly.
the class InjectionTestCase method testPojoEndpoint.
@Test
public void testPojoEndpoint() throws Exception {
QName serviceName = new QName("http://jbossws.org/injection", "POJOService");
URL wsdlURL = new URL(baseUrl, "/jaxws-injection-pojo/POJOService?wsdl");
Service service = Service.create(wsdlURL, serviceName);
EndpointIface proxy = service.getPort(EndpointIface.class);
Assert.assertEquals("Hello World!:Inbound:TestHandler:POJOBean:Outbound:TestHandler", proxy.echo("Hello World!"));
}
use of org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface 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 org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface 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