Search in sources :

Example 1 with SoapBindingFactory

use of org.apache.cxf.binding.soap.SoapBindingFactory in project camel by apache.

the class SpringBusFactoryBeanTest method getTheBusInstance.

@Test
public void getTheBusInstance() {
    Bus bus = ctx.getBean("cxfBus", Bus.class);
    assertNotNull("The bus should not be null", bus);
    bus = ctx.getBean("myBus", Bus.class);
    assertNotNull("The bus should not be null", bus);
    SoapBindingFactory soapBindingFactory = bus.getExtension(SoapBindingFactory.class);
    assertNotNull("You should find the factory here", soapBindingFactory);
}
Also used : Bus(org.apache.cxf.Bus) SoapBindingFactory(org.apache.cxf.binding.soap.SoapBindingFactory) Test(org.junit.Test)

Aggregations

Bus (org.apache.cxf.Bus)1 SoapBindingFactory (org.apache.cxf.binding.soap.SoapBindingFactory)1 Test (org.junit.Test)1