THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
Bus bus = BusFactory.getThreadDefaultBus(); DestinationFactoryManagerImpl dfm = bus.getExtension(DestinationFactoryManagerImpl.class); CustomTransportFactory customTransport = new CustomTransportFactory(); dfm.registerDestinationFactory("http://cxf.apache.org/transports/TRANSPORT_PREFIX", customTransport); dfm.registerDestinationFactory("http://cxf.apache.org/transports/TRANSPORT_PREFIX/configuration", customTransport); ConduitInitiatorManager extension = bus.getExtension(ConduitInitiatorManager.class); extension.registerConduitInitiator("http://cxf.apache.org/transports/TRANSPORT_PREFIX", sbbTransportcustomTransport); extension.registerConduitInitiator("http://cxf.apache.org/transports/TRANSPORT_PREFIX/configuration", customTransport); |
...
To define a new transport endpoint in the WSDL document follow these two steps:
a) Set the soap:binding transport attribute to the transport URL value (http://cxf.apache.org/transports/TRANSPORT_PREFIX)
b) The Port address element should be bound to namespace equals to transport URL in WSDL XML
...
Code Block | ||||
---|---|---|---|---|
| ||||
<wsdl:definitions xmlns:transport="http://cxf.apache.org/transports/TRANSPORT_PREFIX" …> … … <wsdl:binding name="GreeterPortBinding" type="tns: GreeterPortType"> <soap:binding style="document" transport="http://cxf.apache.org/transports/TRANSPORT_PREFIX"/> … <wsdl:service name="GreeterService"> <wsdl:port binding="tns:GreeterPortBinding" name="GreeterPort"> <transport:address location="TRANSPORT_PREFIX://localhost:9000/hello/LOCATION_URL"> … |
Conduit and Destination Lifecycle
...