Search in sources :

Example 1 with JMSGreeterService2

use of org.apache.cxf.jms_greeter.JMSGreeterService2 in project cxf by apache.

the class SoapJmsSpecTest method testWsdlExtensionSpecJMSPortError.

@Test
public void testWsdlExtensionSpecJMSPortError() throws Exception {
    QName serviceName = new QName(SERVICE_NS, "JMSGreeterService2");
    QName portName = new QName(SERVICE_NS, "GreeterPort2");
    URL wsdl = getWSDLURL(WSDL);
    JMSGreeterService2 service = new JMSGreeterService2(wsdl, serviceName);
    JMSGreeterPortType greeter = markForClose(service.getPort(portName, JMSGreeterPortType.class, cff));
    String reply = greeter.sayHi();
    Assert.assertEquals("Bonjour", reply);
}
Also used : JMSGreeterService2(org.apache.cxf.jms_greeter.JMSGreeterService2) QName(javax.xml.namespace.QName) JMSGreeterPortType(org.apache.cxf.jms_greeter.JMSGreeterPortType) URL(java.net.URL) Test(org.junit.Test) AbstractVmJMSTest(org.apache.cxf.systest.jms.AbstractVmJMSTest)

Aggregations

URL (java.net.URL)1 QName (javax.xml.namespace.QName)1 JMSGreeterPortType (org.apache.cxf.jms_greeter.JMSGreeterPortType)1 JMSGreeterService2 (org.apache.cxf.jms_greeter.JMSGreeterService2)1 AbstractVmJMSTest (org.apache.cxf.systest.jms.AbstractVmJMSTest)1 Test (org.junit.Test)1