Search in sources :

Example 1 with HelloIface

use of org.jboss.test.ws.jaxws.jbws2957.common.HelloIface in project jbossws-cxf by jbossws.

the class JBWS2957TestCase method testEJB.

@Test
@RunAsClient
public void testEJB() throws Exception {
    URL wsdlURL = new URL(baseURL + "/Service/HelloImpl?wsdl");
    QName serviceName = new QName("http://www.jboss.org/test/ws/jaxws/jbws2957", "Service");
    Service.create(wsdlURL, serviceName);
    Service service = Service.create(wsdlURL, serviceName);
    HelloIface port = (HelloIface) service.getPort(HelloIface.class);
    assertEquals("Hello", port.sayHello());
}
Also used : HelloIface(org.jboss.test.ws.jaxws.jbws2957.common.HelloIface) QName(javax.xml.namespace.QName) Service(javax.xml.ws.Service) URL(java.net.URL) RunAsClient(org.jboss.arquillian.container.test.api.RunAsClient) Test(org.junit.Test) JBossWSTest(org.jboss.wsf.test.JBossWSTest)

Aggregations

URL (java.net.URL)1 QName (javax.xml.namespace.QName)1 Service (javax.xml.ws.Service)1 RunAsClient (org.jboss.arquillian.container.test.api.RunAsClient)1 HelloIface (org.jboss.test.ws.jaxws.jbws2957.common.HelloIface)1 JBossWSTest (org.jboss.wsf.test.JBossWSTest)1 Test (org.junit.Test)1