Search in sources :

Example 1 with NamespaceUriProvider

use of nl.nn.adapterframework.http.cxf.NamespaceUriProvider in project iaf by ibissource.

the class NamespaceUriProviderBean method afterPropertiesSet.

@Override
public void afterPropertiesSet() throws Exception {
    // TODO look into NamespaceHandlerResolver
    Bus bus = (Bus) applicationContext.getBean("cxf");
    if (bus instanceof SpringBus) {
        log.debug("default CXF SpringBus [" + bus.getId() + "]");
        log.info("registering NamespaceURI Provider with JAX-WS CXF Dispatcher");
        namespaceRouter = new EndpointImpl(bus, new NamespaceUriProvider());
        namespaceRouter.publish("/rpcrouter");
        if (namespaceRouter.isPublished()) {
            log.info("published NamespaceURI Provider on CXF endpoint [rpcrouter] on SpringBus [" + namespaceRouter.getBus().getId() + "]");
        } else {
            throw new IllegalStateException("unable to NamespaceURI Service Provider on CXF endpoint [rpcrouter]");
        }
    } else {
        throw new IllegalStateException("CXF bus [" + bus + "] not instance of [SpringBus]");
    }
}
Also used : Bus(org.apache.cxf.Bus) SpringBus(org.apache.cxf.bus.spring.SpringBus) NamespaceUriProvider(nl.nn.adapterframework.http.cxf.NamespaceUriProvider) SpringBus(org.apache.cxf.bus.spring.SpringBus) EndpointImpl(org.apache.cxf.jaxws.EndpointImpl)

Aggregations

NamespaceUriProvider (nl.nn.adapterframework.http.cxf.NamespaceUriProvider)1 Bus (org.apache.cxf.Bus)1 SpringBus (org.apache.cxf.bus.spring.SpringBus)1 EndpointImpl (org.apache.cxf.jaxws.EndpointImpl)1