1 7 8 package docStyle.zipCodeNW; 9 10 public class ZipCodeResolverLocator extends org.apache.axis.client.Service implements docStyle.zipCodeNW.ZipCodeResolver { 11 12 17 18 private final java.lang.String ZipCodeResolverSoap_address = "http://webservices.eraserver.net/zipcoderesolver/zipcoderesolver.asmx"; 20 22 public java.lang.String getZipCodeResolverSoapAddress() { 23 return ZipCodeResolverSoap_address; 24 } 25 26 private java.lang.String ZipCodeResolverSoapWSDDServiceName = "ZipCodeResolverSoap"; 28 29 public java.lang.String getZipCodeResolverSoapWSDDServiceName() { 30 return ZipCodeResolverSoapWSDDServiceName; 31 } 32 33 public void setZipCodeResolverSoapWSDDServiceName(java.lang.String name) { 34 ZipCodeResolverSoapWSDDServiceName = name; 35 } 36 37 public docStyle.zipCodeNW.ZipCodeResolverSoap getZipCodeResolverSoap() throws javax.xml.rpc.ServiceException { 38 java.net.URL endpoint; 39 try { 40 endpoint = new java.net.URL (ZipCodeResolverSoap_address); 41 } 42 catch (java.net.MalformedURLException e) { 43 return null; } 45 return getZipCodeResolverSoap(endpoint); 46 } 47 48 public docStyle.zipCodeNW.ZipCodeResolverSoap getZipCodeResolverSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 49 try { 50 docStyle.zipCodeNW.ZipCodeResolverSoapStub _stub = new docStyle.zipCodeNW.ZipCodeResolverSoapStub(portAddress, this); 51 _stub.setPortName(getZipCodeResolverSoapWSDDServiceName()); 52 return _stub; 53 } 54 catch (org.apache.axis.AxisFault e) { 55 return null; 56 } 57 } 58 59 64 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 65 try { 66 if (docStyle.zipCodeNW.ZipCodeResolverSoap.class.isAssignableFrom(serviceEndpointInterface)) { 67 docStyle.zipCodeNW.ZipCodeResolverSoapStub _stub = new docStyle.zipCodeNW.ZipCodeResolverSoapStub(new java.net.URL (ZipCodeResolverSoap_address), this); 68 _stub.setPortName(getZipCodeResolverSoapWSDDServiceName()); 69 return _stub; 70 } 71 } 72 catch (java.lang.Throwable t) { 73 throw new javax.xml.rpc.ServiceException (t); 74 } 75 throw new javax.xml.rpc.ServiceException ("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 76 } 77 78 83 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 84 java.rmi.Remote _stub = getPort(serviceEndpointInterface); 85 ((org.apache.axis.client.Stub) _stub).setPortName(portName); 86 return _stub; 87 } 88 89 public javax.xml.namespace.QName getServiceName() { 90 return new javax.xml.namespace.QName ("http://webservices.eraserver.net/", "ZipCodeResolver"); 91 } 92 93 private java.util.HashSet ports = null; 94 95 public java.util.Iterator getPorts() { 96 if (ports == null) { 97 ports = new java.util.HashSet (); 98 ports.add(new javax.xml.namespace.QName ("ZipCodeResolverSoap")); 99 } 100 return ports.iterator(); 101 } 102 103 } 104 | Popular Tags |