public CXFWebServiceContainer(Bus bus,
URL configurationBaseUrl,
Object target) {
this.bus = bus;
this.configurationBaseUrl = configurationBaseUrl;
List ids = new ArrayList();
ids.add("http://schemas.xmlsoap.org/wsdl/soap/");
DestinationFactoryManager destinationFactoryManager = bus
.getExtension(DestinationFactoryManager.class);
GeronimoDestinationFactory factory = new GeronimoDestinationFactory(bus);
factory.setTransportIds(ids);
destinationFactoryManager.registerDestinationFactory(
"http://cxf.apache.org/transports/http/configuration", factory);
destinationFactoryManager.registerDestinationFactory(
"http://cxf.apache.org/bindings/xformat", factory);
destinationFactoryManager.registerDestinationFactory(
"http://www.w3.org/2003/05/soap/bindings/HTTP/", factory);
destinationFactoryManager.registerDestinationFactory(
"http://schemas.xmlsoap.org/soap/http", factory);
destinationFactoryManager.registerDestinationFactory(
"http://schemas.xmlsoap.org/wsdl/http/", factory);
destinationFactoryManager.registerDestinationFactory(
"http://schemas.xmlsoap.org/wsdl/soap/http", factory);
endpoint = publishEndpoint(target);
destination = (GeronimoDestination) endpoint.getServer().getDestination();
}
|