1 7 8 package org.alfresco.webservice.administration; 9 10 public class AdministrationServiceLocator extends org.apache.axis.client.Service implements org.alfresco.webservice.administration.AdministrationService { 11 12 15 16 public AdministrationServiceLocator() { 17 } 18 19 20 public AdministrationServiceLocator(org.apache.axis.EngineConfiguration config) { 21 super(config); 22 } 23 24 public AdministrationServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { 25 super(wsdlLoc, sName); 26 } 27 28 private java.lang.String AdministrationService_address = "http://localhost:8080/alfresco/api/AdministrationService"; 30 31 public java.lang.String getAdministrationServiceAddress() { 32 return AdministrationService_address; 33 } 34 35 private java.lang.String AdministrationServiceWSDDServiceName = "AdministrationService"; 37 38 public java.lang.String getAdministrationServiceWSDDServiceName() { 39 return AdministrationServiceWSDDServiceName; 40 } 41 42 public void setAdministrationServiceWSDDServiceName(java.lang.String name) { 43 AdministrationServiceWSDDServiceName = name; 44 } 45 46 public org.alfresco.webservice.administration.AdministrationServiceSoapPort getAdministrationService() throws javax.xml.rpc.ServiceException { 47 java.net.URL endpoint; 48 try { 49 endpoint = new java.net.URL (AdministrationService_address); 50 } 51 catch (java.net.MalformedURLException e) { 52 throw new javax.xml.rpc.ServiceException (e); 53 } 54 return getAdministrationService(endpoint); 55 } 56 57 public org.alfresco.webservice.administration.AdministrationServiceSoapPort getAdministrationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 58 try { 59 org.alfresco.webservice.administration.AdministrationServiceSoapBindingStub _stub = new org.alfresco.webservice.administration.AdministrationServiceSoapBindingStub(portAddress, this); 60 _stub.setPortName(getAdministrationServiceWSDDServiceName()); 61 return _stub; 62 } 63 catch (org.apache.axis.AxisFault e) { 64 return null; 65 } 66 } 67 68 public void setAdministrationServiceEndpointAddress(java.lang.String address) { 69 AdministrationService_address = address; 70 } 71 72 77 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 78 try { 79 if (org.alfresco.webservice.administration.AdministrationServiceSoapPort.class.isAssignableFrom(serviceEndpointInterface)) { 80 org.alfresco.webservice.administration.AdministrationServiceSoapBindingStub _stub = new org.alfresco.webservice.administration.AdministrationServiceSoapBindingStub(new java.net.URL (AdministrationService_address), this); 81 _stub.setPortName(getAdministrationServiceWSDDServiceName()); 82 return _stub; 83 } 84 } 85 catch (java.lang.Throwable t) { 86 throw new javax.xml.rpc.ServiceException (t); 87 } 88 throw new javax.xml.rpc.ServiceException ("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 89 } 90 91 96 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 97 if (portName == null) { 98 return getPort(serviceEndpointInterface); 99 } 100 java.lang.String inputPortName = portName.getLocalPart(); 101 if ("AdministrationService".equals(inputPortName)) { 102 return getAdministrationService(); 103 } 104 else { 105 java.rmi.Remote _stub = getPort(serviceEndpointInterface); 106 ((org.apache.axis.client.Stub) _stub).setPortName(portName); 107 return _stub; 108 } 109 } 110 111 public javax.xml.namespace.QName getServiceName() { 112 return new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/administration/1.0", "AdministrationService"); 113 } 114 115 private java.util.HashSet ports = null; 116 117 public java.util.Iterator getPorts() { 118 if (ports == null) { 119 ports = new java.util.HashSet (); 120 ports.add(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/administration/1.0", "AdministrationService")); 121 } 122 return ports.iterator(); 123 } 124 125 128 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 129 130 if ("AdministrationService".equals(portName)) { 131 setAdministrationServiceEndpointAddress(address); 132 } 133 else 134 { throw new javax.xml.rpc.ServiceException (" Cannot set Endpoint Address for Unknown Port" + portName); 136 } 137 } 138 139 142 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException { 143 setEndpointAddress(portName.getLocalPart(), address); 144 } 145 146 } 147 | Popular Tags |