protected ServerTransport createTransport(EndpointReferenceType ref)
throws WSDLException, IOException {
TransportFactoryManager tfm = bus.getTransportFactoryManager();
String name = "http://celtix.objectweb.org/transports/test";
TransportFactory tf = null;
try {
tf = tfm.getTransportFactory(name);
} catch (BusException ex) {
// ignore
}
if (tf == null) {
tf = new TestTransportFactory();
try {
tfm.registerTransportFactory(name, tf);
} catch (BusException ex) {
System.out.println(ex.getMessage());
return null;
}
}
return tf.createServerTransport(ref);
}