1 7 8 43 44 package com.bluecubs.xinco.service; 45 46 public class XincoServiceLocator extends org.apache.axis.client.Service implements com.bluecubs.xinco.service.XincoService { 47 48 private final java.lang.String Xinco_address = "http://localhost:8080/xinco/services/Xinco"; 50 51 public java.lang.String getXincoAddress() { 52 return Xinco_address; 53 } 54 55 private java.lang.String XincoWSDDServiceName = "Xinco"; 57 58 public java.lang.String getXincoWSDDServiceName() { 59 return XincoWSDDServiceName; 60 } 61 62 public void setXincoWSDDServiceName(java.lang.String name) { 63 XincoWSDDServiceName = name; 64 } 65 66 public com.bluecubs.xinco.service.Xinco getXinco() throws javax.xml.rpc.ServiceException { 67 java.net.URL endpoint; 68 try { 69 endpoint = new java.net.URL (Xinco_address); 70 } 71 catch (java.net.MalformedURLException e) { 72 throw new javax.xml.rpc.ServiceException (e); 73 } 74 return getXinco(endpoint); 75 } 76 77 public com.bluecubs.xinco.service.Xinco getXinco(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 78 try { 79 com.bluecubs.xinco.service.XincoSoapBindingStub _stub = new com.bluecubs.xinco.service.XincoSoapBindingStub(portAddress, this); 80 _stub.setPortName(getXincoWSDDServiceName()); 81 return _stub; 82 } 83 catch (org.apache.axis.AxisFault e) { 84 return null; 85 } 86 } 87 88 93 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 94 try { 95 if (com.bluecubs.xinco.service.Xinco.class.isAssignableFrom(serviceEndpointInterface)) { 96 com.bluecubs.xinco.service.XincoSoapBindingStub _stub = new com.bluecubs.xinco.service.XincoSoapBindingStub(new java.net.URL (Xinco_address), this); 97 _stub.setPortName(getXincoWSDDServiceName()); 98 return _stub; 99 } 100 } 101 catch (java.lang.Throwable t) { 102 throw new javax.xml.rpc.ServiceException (t); 103 } 104 throw new javax.xml.rpc.ServiceException ("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 105 } 106 107 112 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 113 if (portName == null) { 114 return getPort(serviceEndpointInterface); 115 } 116 String inputPortName = portName.getLocalPart(); 117 if ("Xinco".equals(inputPortName)) { 118 return getXinco(); 119 } 120 else { 121 java.rmi.Remote _stub = getPort(serviceEndpointInterface); 122 ((org.apache.axis.client.Stub) _stub).setPortName(portName); 123 return _stub; 124 } 125 } 126 127 public javax.xml.namespace.QName getServiceName() { 128 return new javax.xml.namespace.QName ("urn:Xinco", "XincoService"); 129 } 130 131 private java.util.HashSet ports = null; 132 133 public java.util.Iterator getPorts() { 134 if (ports == null) { 135 ports = new java.util.HashSet (); 136 ports.add(new javax.xml.namespace.QName ("Xinco")); 137 } 138 return ports.iterator(); 139 } 140 141 } 142 | Popular Tags |