1 package org.objectweb.celtix.bus.ws.rm; 2 3 import java.io.IOException ; 4 5 import javax.wsdl.WSDLException; 6 7 import org.objectweb.celtix.Bus; 8 import org.objectweb.celtix.bindings.DataBindingCallback; 9 import org.objectweb.celtix.bindings.Request; 10 import org.objectweb.celtix.bus.bindings.TestClientTransport; 11 import org.objectweb.celtix.bus.bindings.soap.SOAPClientBinding; 12 import org.objectweb.celtix.transports.ClientTransport; 13 import org.objectweb.celtix.transports.Transport; 14 import org.objectweb.celtix.ws.addressing.EndpointReferenceType; 15 16 public class TestSoapClientBinding extends SOAPClientBinding { 17 boolean sent; 18 19 public TestSoapClientBinding(Bus b, EndpointReferenceType ref) throws WSDLException, IOException { 20 super(b, ref); 21 } 22 23 protected ClientTransport createTransport(EndpointReferenceType ref) 24 throws WSDLException, IOException { 25 return new TestClientTransport(bus, ref); 26 } 27 28 public TestClientTransport getClientTransport() throws IOException { 29 return (TestClientTransport)getTransport(); 30 } 31 32 public Transport retrieveTransport() { 33 try { 34 return getTransport(); 35 } catch (IOException ioe) { 36 return null; 37 } 38 } 39 40 public void send(Request request, DataBindingCallback callback) 41 throws IOException { 42 sent = true; 43 } 44 45 boolean isSent() { 46 return sent; 47 } 48 49 99 } 100 | Popular Tags |