1 package org.objectweb.celtix.bus.bindings.soap; 2 3 import java.io.IOException ; 4 import javax.wsdl.WSDLException; 5 6 import org.objectweb.celtix.Bus; 7 import org.objectweb.celtix.bindings.BindingFactory; 8 import org.objectweb.celtix.bindings.ClientBinding; 9 import org.objectweb.celtix.bindings.ServerBinding; 10 import org.objectweb.celtix.bindings.ServerBindingEndpointCallback; 11 import org.objectweb.celtix.ws.addressing.EndpointReferenceType; 12 13 public class SOAPBindingFactory implements BindingFactory { 14 private Bus bus; 15 16 public SOAPBindingFactory() { 17 } 19 20 public void init(Bus b) { 21 bus = b; 22 } 23 24 public ClientBinding createClientBinding(EndpointReferenceType reference) 25 throws WSDLException, IOException { 26 return new SOAPClientBinding(bus, reference); 27 } 28 29 public ServerBinding createServerBinding(EndpointReferenceType reference, 30 ServerBindingEndpointCallback cbFactory) 31 throws WSDLException, IOException { 32 return new SOAPServerBinding(bus, reference, cbFactory); 33 } 34 35 } 36 | Popular Tags |