1 package customfactory.client; 2 3 import org.apache.wsif.WSIFServiceFactory; 4 import org.apache.wsif.WSIFService; 5 import org.apache.wsif.WSIFException; 6 import javax.wsdl.*; 7 8 public class CustomServiceFactoryImpl extends WSIFServiceFactory { 9 public CustomServiceFactoryImpl() { 10 System.out.println("Using custom factory"); 11 } 12 28 public WSIFService getService( 29 String wsdlLoc, 30 String serviceNS, 31 String serviceName, 32 String portTypeNS, 33 String portTypeName) 34 throws WSIFException { 35 CustomServiceImpl wsi = 36 new CustomServiceImpl( 37 wsdlLoc, 38 serviceNS, 39 serviceName, 40 portTypeNS, 41 portTypeName); 42 return wsi; 43 } 44 45 63 public WSIFService getService( 64 String wsdlLoc, 65 ClassLoader cl, 66 String serviceNS, 67 String serviceName, 68 String portTypeNS, 69 String portTypeName) 70 throws WSIFException { 71 CustomServiceImpl wsi = 72 new CustomServiceImpl( 73 wsdlLoc, 74 cl, 75 serviceNS, 76 serviceName, 77 portTypeNS, 78 portTypeName); 79 return wsi; 80 } 81 82 88 public WSIFService getService(Definition def) throws WSIFException { 89 CustomServiceImpl wsi = new CustomServiceImpl(def); 90 return wsi; 91 } 92 93 100 public WSIFService getService(Definition def, Service service) 101 throws WSIFException { 102 CustomServiceImpl wsi = new CustomServiceImpl(def, service); 103 return wsi; 104 } 105 106 114 public WSIFService getService( 115 Definition def, 116 Service service, 117 PortType portType) 118 throws WSIFException { 119 CustomServiceImpl wsi = new CustomServiceImpl(def, service, portType); 120 return wsi; 121 } 122 123 133 public WSIFService getService( 134 Definition def, 135 String serviceNS, 136 String serviceName, 137 String portTypeNS, 138 String portTypeName) 139 throws WSIFException { 140 CustomServiceImpl wsi = 141 new CustomServiceImpl( 142 def, 143 serviceNS, 144 serviceName, 145 portTypeNS, 146 portTypeName); 147 return wsi; 148 } 149 } 150 | Popular Tags |