Search in sources :

Example 1 with EndpointIface

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!"));
}
Also used : QName(javax.xml.namespace.QName) Service(javax.xml.ws.Service) EndpointIface(org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface) URL(java.net.URL) Test(org.junit.Test)

Example 2 with EndpointIface

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!"));
}
Also used : QName(javax.xml.namespace.QName) Service(javax.xml.ws.Service) EndpointIface(org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface) URL(java.net.URL) Test(org.junit.Test)

Example 3 with EndpointIface

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!"));
}
Also used : QName(javax.xml.namespace.QName) Service(javax.xml.ws.Service) EndpointIface(org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface) URL(java.net.URL) Test(org.junit.Test)

Aggregations

URL (java.net.URL)3 QName (javax.xml.namespace.QName)3 Service (javax.xml.ws.Service)3 EndpointIface (org.jboss.as.test.integration.ws.injection.ejb.basic.webservice.EndpointIface)3 Test (org.junit.Test)3