Search in sources :

Example 6 with JMSGreeterPortType

use of org.apache.cxf.jms_greeter.JMSGreeterPortType 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

JMSGreeterPortType (org.apache.cxf.jms_greeter.JMSGreeterPortType)6 URL (java.net.URL)5 AbstractVmJMSTest (org.apache.cxf.systest.jms.AbstractVmJMSTest)5 Test (org.junit.Test)5 QName (javax.xml.namespace.QName)4 JMSGreeterService (org.apache.cxf.jms_greeter.JMSGreeterService)4 BindingProvider (javax.xml.ws.BindingProvider)2 Endpoint (javax.xml.ws.Endpoint)2 JMSMessageHeadersType (org.apache.cxf.transport.jms.JMSMessageHeadersType)2 Closeable (java.io.Closeable)1 File (java.io.File)1 Map (java.util.Map)1 SOAPFaultException (javax.xml.ws.soap.SOAPFaultException)1 JaxWsProxyFactoryBean (org.apache.cxf.jaxws.JaxWsProxyFactoryBean)1 JMSGreeterService2 (org.apache.cxf.jms_greeter.JMSGreeterService2)1 GZIPFeature (org.apache.cxf.transport.common.gzip.GZIPFeature)1