Examples of findQNameForSoapActionOrType()


Examples of org.apache.camel.dataformat.soap.name.QNameStrategy.findQNameForSoapActionOrType()

    @Test
    public void testQName() {
        QName elementName = new QName("http://my.name.org", "myElement");
        QNameStrategy strategy = new QNameStrategy(elementName);
       
        QName actualElementName = strategy.findQNameForSoapActionOrType(null, GetCustomersByName.class);
        Assert.assertEquals(elementName, actualElementName);
    }
}
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.QNameStrategy.findQNameForSoapActionOrType()

    @Test
    public void testQName() {
        QName elementName = new QName("http://my.name.org", "myElement");
        QNameStrategy strategy = new QNameStrategy(elementName);
       
        QName actualElementName = strategy.findQNameForSoapActionOrType(null, GetCustomersByName.class);
        Assert.assertEquals(elementName, actualElementName);
    }
}
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

    private static final Log LOG = LogFactory.getLog(ServiceInterfaceStrategyTest.class);
   
    @Test
    public void testServiceInterfaceStrategyWithClient() {
        ServiceInterfaceStrategy strategy = new ServiceInterfaceStrategy(CustomerService.class, true);
        QName elName = strategy.findQNameForSoapActionOrType("", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName.getNamespaceURI());
        Assert.assertEquals("getCustomersByName", elName.getLocalPart());
       
        QName elName2 = strategy.findQNameForSoapActionOrType("getCustomersByName", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName2.getNamespaceURI());
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

        ServiceInterfaceStrategy strategy = new ServiceInterfaceStrategy(CustomerService.class, true);
        QName elName = strategy.findQNameForSoapActionOrType("", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName.getNamespaceURI());
        Assert.assertEquals("getCustomersByName", elName.getLocalPart());
       
        QName elName2 = strategy.findQNameForSoapActionOrType("getCustomersByName", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName2.getNamespaceURI());
        Assert.assertEquals("getCustomersByName", elName2.getLocalPart());
       
        try {
            elName = strategy.findQNameForSoapActionOrType("test", Class.class);
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

        QName elName2 = strategy.findQNameForSoapActionOrType("getCustomersByName", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName2.getNamespaceURI());
        Assert.assertEquals("getCustomersByName", elName2.getLocalPart());
       
        try {
            elName = strategy.findQNameForSoapActionOrType("test", Class.class);
            Assert.fail();
        } catch (RuntimeCamelException e) {
            LOG.debug("Caught expected message: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

    }
   
    @Test
    public void testServiceInterfaceStrategyWithServer() {
        ServiceInterfaceStrategy strategy = new ServiceInterfaceStrategy(CustomerService.class, false);
        QName elName = strategy.findQNameForSoapActionOrType("", GetCustomersByNameResponse.class);
        Assert.assertEquals("http://customerservice.example.com/", elName.getNamespaceURI());
        Assert.assertEquals("getCustomersByNameResponse", elName.getLocalPart());

        QName elName2 = strategy.findQNameForSoapActionOrType("getCustomersByName", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName2.getNamespaceURI());
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

        ServiceInterfaceStrategy strategy = new ServiceInterfaceStrategy(CustomerService.class, false);
        QName elName = strategy.findQNameForSoapActionOrType("", GetCustomersByNameResponse.class);
        Assert.assertEquals("http://customerservice.example.com/", elName.getNamespaceURI());
        Assert.assertEquals("getCustomersByNameResponse", elName.getLocalPart());

        QName elName2 = strategy.findQNameForSoapActionOrType("getCustomersByName", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName2.getNamespaceURI());
        Assert.assertEquals("getCustomersByNameResponse", elName2.getLocalPart());
       
        try {
            elName = strategy.findQNameForSoapActionOrType("test", Class.class);
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

        QName elName2 = strategy.findQNameForSoapActionOrType("getCustomersByName", GetCustomersByName.class);
        Assert.assertEquals("http://customerservice.example.com/", elName2.getNamespaceURI());
        Assert.assertEquals("getCustomersByNameResponse", elName2.getLocalPart());
       
        try {
            elName = strategy.findQNameForSoapActionOrType("test", Class.class);
            Assert.fail();
        } catch (RuntimeCamelException e) {
            LOG.debug("Caught expected message: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

    }
   
    @Test
    public void testServiceInterfaceStrategyWithRequestWrapperAndClient() {
        ServiceInterfaceStrategy strategy = new ServiceInterfaceStrategy(com.example.customerservice2.CustomerService.class, true);
        QName elName = strategy.findQNameForSoapActionOrType("", com.example.customerservice2.GetCustomersByName.class);
        Assert.assertEquals("http://customerservice2.example.com/", elName.getNamespaceURI());
        Assert.assertEquals("getCustomersByName", elName.getLocalPart());
       
        try {
            elName = strategy.findQNameForSoapActionOrType("test", Class.class);
View Full Code Here

Examples of org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType()

        QName elName = strategy.findQNameForSoapActionOrType("", com.example.customerservice2.GetCustomersByName.class);
        Assert.assertEquals("http://customerservice2.example.com/", elName.getNamespaceURI());
        Assert.assertEquals("getCustomersByName", elName.getLocalPart());
       
        try {
            elName = strategy.findQNameForSoapActionOrType("test", Class.class);
            Assert.fail();
        } catch (RuntimeCamelException e) {
            LOG.debug("Caught expected message: " + e.getMessage());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.