mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Moving to root below branch label
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* AuthenticationFault.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.authentication;
|
||||
|
||||
public class AuthenticationFault extends org.apache.axis.AxisFault implements java.io.Serializable {
|
||||
private int errorCode;
|
||||
private java.lang.String message1;
|
||||
|
||||
public AuthenticationFault() {
|
||||
}
|
||||
|
||||
public AuthenticationFault(
|
||||
int errorCode,
|
||||
java.lang.String message1) {
|
||||
this.errorCode = errorCode;
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the errorCode value for this AuthenticationFault.
|
||||
*
|
||||
* @return errorCode
|
||||
*/
|
||||
public int getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the errorCode value for this AuthenticationFault.
|
||||
*
|
||||
* @param errorCode
|
||||
*/
|
||||
public void setErrorCode(int errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the message1 value for this AuthenticationFault.
|
||||
*
|
||||
* @return message1
|
||||
*/
|
||||
public java.lang.String getMessage1() {
|
||||
return message1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the message1 value for this AuthenticationFault.
|
||||
*
|
||||
* @param message1
|
||||
*/
|
||||
public void setMessage1(java.lang.String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof AuthenticationFault)) return false;
|
||||
AuthenticationFault other = (AuthenticationFault) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
this.errorCode == other.getErrorCode() &&
|
||||
((this.message1==null && other.getMessage1()==null) ||
|
||||
(this.message1!=null &&
|
||||
this.message1.equals(other.getMessage1())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += getErrorCode();
|
||||
if (getMessage1() != null) {
|
||||
_hashCode += getMessage1().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(AuthenticationFault.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationFault"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("errorCode");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "errorCode"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("message1");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "message"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Writes the exception data to the faultDetails
|
||||
*/
|
||||
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
|
||||
context.serialize(qname, null, this);
|
||||
}
|
||||
}
|
@@ -0,0 +1,154 @@
|
||||
/**
|
||||
* AuthenticationResult.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.authentication;
|
||||
|
||||
public class AuthenticationResult implements java.io.Serializable {
|
||||
private java.lang.String username;
|
||||
private java.lang.String ticket;
|
||||
|
||||
public AuthenticationResult() {
|
||||
}
|
||||
|
||||
public AuthenticationResult(
|
||||
java.lang.String username,
|
||||
java.lang.String ticket) {
|
||||
this.username = username;
|
||||
this.ticket = ticket;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the username value for this AuthenticationResult.
|
||||
*
|
||||
* @return username
|
||||
*/
|
||||
public java.lang.String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the username value for this AuthenticationResult.
|
||||
*
|
||||
* @param username
|
||||
*/
|
||||
public void setUsername(java.lang.String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the ticket value for this AuthenticationResult.
|
||||
*
|
||||
* @return ticket
|
||||
*/
|
||||
public java.lang.String getTicket() {
|
||||
return ticket;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the ticket value for this AuthenticationResult.
|
||||
*
|
||||
* @param ticket
|
||||
*/
|
||||
public void setTicket(java.lang.String ticket) {
|
||||
this.ticket = ticket;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof AuthenticationResult)) return false;
|
||||
AuthenticationResult other = (AuthenticationResult) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.username==null && other.getUsername()==null) ||
|
||||
(this.username!=null &&
|
||||
this.username.equals(other.getUsername()))) &&
|
||||
((this.ticket==null && other.getTicket()==null) ||
|
||||
(this.ticket!=null &&
|
||||
this.ticket.equals(other.getTicket())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getUsername() != null) {
|
||||
_hashCode += getUsername().hashCode();
|
||||
}
|
||||
if (getTicket() != null) {
|
||||
_hashCode += getTicket().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(AuthenticationResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationResult"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("username");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "username"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("ticket");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "ticket"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* AuthenticationService.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.authentication;
|
||||
|
||||
public interface AuthenticationService extends javax.xml.rpc.Service {
|
||||
|
||||
/**
|
||||
* Provides simple authentication capability.
|
||||
*/
|
||||
public java.lang.String getAuthenticationServiceAddress();
|
||||
|
||||
public org.alfresco.example.webservice.authentication.AuthenticationServiceSoapPort getAuthenticationService() throws javax.xml.rpc.ServiceException;
|
||||
|
||||
public org.alfresco.example.webservice.authentication.AuthenticationServiceSoapPort getAuthenticationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
|
||||
}
|
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* AuthenticationServiceLocator.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.authentication;
|
||||
|
||||
public class AuthenticationServiceLocator extends org.apache.axis.client.Service implements org.alfresco.example.webservice.authentication.AuthenticationService {
|
||||
|
||||
/**
|
||||
* Provides simple authentication capability.
|
||||
*/
|
||||
|
||||
public AuthenticationServiceLocator() {
|
||||
}
|
||||
|
||||
|
||||
public AuthenticationServiceLocator(org.apache.axis.EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public AuthenticationServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
// Use to get a proxy class for AuthenticationService
|
||||
private java.lang.String AuthenticationService_address = "http://localhost:8080/alfresco/api/AuthenticationService";
|
||||
|
||||
public java.lang.String getAuthenticationServiceAddress() {
|
||||
return AuthenticationService_address;
|
||||
}
|
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private java.lang.String AuthenticationServiceWSDDServiceName = "AuthenticationService";
|
||||
|
||||
public java.lang.String getAuthenticationServiceWSDDServiceName() {
|
||||
return AuthenticationServiceWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setAuthenticationServiceWSDDServiceName(java.lang.String name) {
|
||||
AuthenticationServiceWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.authentication.AuthenticationServiceSoapPort getAuthenticationService() throws javax.xml.rpc.ServiceException {
|
||||
java.net.URL endpoint;
|
||||
try {
|
||||
endpoint = new java.net.URL(AuthenticationService_address);
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
throw new javax.xml.rpc.ServiceException(e);
|
||||
}
|
||||
return getAuthenticationService(endpoint);
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.authentication.AuthenticationServiceSoapPort getAuthenticationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub _stub = new org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub(portAddress, this);
|
||||
_stub.setPortName(getAuthenticationServiceWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
catch (org.apache.axis.AxisFault e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setAuthenticationServiceEndpointAddress(java.lang.String address) {
|
||||
AuthenticationService_address = address;
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
if (org.alfresco.example.webservice.authentication.AuthenticationServiceSoapPort.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub _stub = new org.alfresco.example.webservice.authentication.AuthenticationServiceSoapBindingStub(new java.net.URL(AuthenticationService_address), this);
|
||||
_stub.setPortName(getAuthenticationServiceWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
catch (java.lang.Throwable t) {
|
||||
throw new javax.xml.rpc.ServiceException(t);
|
||||
}
|
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
if (portName == null) {
|
||||
return getPort(serviceEndpointInterface);
|
||||
}
|
||||
java.lang.String inputPortName = portName.getLocalPart();
|
||||
if ("AuthenticationService".equals(inputPortName)) {
|
||||
return getAuthenticationService();
|
||||
}
|
||||
else {
|
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
|
||||
public javax.xml.namespace.QName getServiceName() {
|
||||
return new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationService");
|
||||
}
|
||||
|
||||
private java.util.HashSet ports = null;
|
||||
|
||||
public java.util.Iterator getPorts() {
|
||||
if (ports == null) {
|
||||
ports = new java.util.HashSet();
|
||||
ports.add(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationService"));
|
||||
}
|
||||
return ports.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
|
||||
if ("AuthenticationService".equals(portName)) {
|
||||
setAuthenticationServiceEndpointAddress(address);
|
||||
}
|
||||
else
|
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,246 @@
|
||||
/**
|
||||
* AuthenticationServiceSoapBindingStub.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.authentication;
|
||||
|
||||
public class AuthenticationServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.authentication.AuthenticationServiceSoapPort {
|
||||
private java.util.Vector cachedSerClasses = new java.util.Vector();
|
||||
private java.util.Vector cachedSerQNames = new java.util.Vector();
|
||||
private java.util.Vector cachedSerFactories = new java.util.Vector();
|
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector();
|
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations;
|
||||
|
||||
static {
|
||||
_operations = new org.apache.axis.description.OperationDesc[2];
|
||||
_initOperationDesc1();
|
||||
}
|
||||
|
||||
private static void _initOperationDesc1(){
|
||||
org.apache.axis.description.OperationDesc oper;
|
||||
org.apache.axis.description.ParameterDesc param;
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("startSession");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "username"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "password"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationResult"));
|
||||
oper.setReturnClass(org.alfresco.example.webservice.authentication.AuthenticationResult.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "startSessionReturn"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
oper.addFault(new org.apache.axis.description.FaultDesc(
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationFault"),
|
||||
"org.alfresco.example.webservice.authentication.AuthenticationFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationFault"),
|
||||
true
|
||||
));
|
||||
_operations[0] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("endSession");
|
||||
oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
oper.addFault(new org.apache.axis.description.FaultDesc(
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationFault"),
|
||||
"org.alfresco.example.webservice.authentication.AuthenticationFault",
|
||||
new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationFault"),
|
||||
true
|
||||
));
|
||||
_operations[1] = oper;
|
||||
|
||||
}
|
||||
|
||||
public AuthenticationServiceSoapBindingStub() throws org.apache.axis.AxisFault {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public AuthenticationServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public AuthenticationServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||
java.lang.Class cls;
|
||||
javax.xml.namespace.QName qName;
|
||||
javax.xml.namespace.QName qName2;
|
||||
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
||||
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
||||
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
|
||||
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
|
||||
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
|
||||
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
|
||||
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
|
||||
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
|
||||
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
|
||||
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationFault");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.authentication.AuthenticationFault.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "AuthenticationResult");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = org.alfresco.example.webservice.authentication.AuthenticationResult.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
}
|
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
|
||||
try {
|
||||
org.apache.axis.client.Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
java.util.Enumeration keys = super.cachedProperties.keys();
|
||||
while (keys.hasMoreElements()) {
|
||||
java.lang.String key = (java.lang.String) keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
// All the type mapping information is registered
|
||||
// when the first call is made.
|
||||
// The type mapping information is actually registered in
|
||||
// the TypeMappingRegistry of the service, which
|
||||
// is the reason why registration is only needed for the first call.
|
||||
synchronized (this) {
|
||||
if (firstCall()) {
|
||||
// must set encoding style before registering serializers
|
||||
_call.setEncodingStyle(null);
|
||||
for (int i = 0; i < cachedSerFactories.size(); ++i) {
|
||||
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
|
||||
javax.xml.namespace.QName qName =
|
||||
(javax.xml.namespace.QName) cachedSerQNames.get(i);
|
||||
java.lang.Object x = cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
java.lang.Class sf = (java.lang.Class)
|
||||
cachedSerFactories.get(i);
|
||||
java.lang.Class df = (java.lang.Class)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
|
||||
cachedSerFactories.get(i);
|
||||
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return _call;
|
||||
}
|
||||
catch (java.lang.Throwable _t) {
|
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
|
||||
}
|
||||
}
|
||||
|
||||
public org.alfresco.example.webservice.authentication.AuthenticationResult startSession(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, org.alfresco.example.webservice.authentication.AuthenticationFault {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://www.alfresco.org/ws/service/authentication/1.0/startSession");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "startSession"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {username, password});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (org.alfresco.example.webservice.authentication.AuthenticationResult) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (org.alfresco.example.webservice.authentication.AuthenticationResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.authentication.AuthenticationResult.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
if (axisFaultException.detail != null) {
|
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException) axisFaultException.detail;
|
||||
}
|
||||
if (axisFaultException.detail instanceof org.alfresco.example.webservice.authentication.AuthenticationFault) {
|
||||
throw (org.alfresco.example.webservice.authentication.AuthenticationFault) axisFaultException.detail;
|
||||
}
|
||||
}
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public void endSession() throws java.rmi.RemoteException, org.alfresco.example.webservice.authentication.AuthenticationFault {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://www.alfresco.org/ws/service/authentication/1.0/endSession");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/authentication/1.0", "endSession"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
extractAttachments(_call);
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
if (axisFaultException.detail != null) {
|
||||
if (axisFaultException.detail instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException) axisFaultException.detail;
|
||||
}
|
||||
if (axisFaultException.detail instanceof org.alfresco.example.webservice.authentication.AuthenticationFault) {
|
||||
throw (org.alfresco.example.webservice.authentication.AuthenticationFault) axisFaultException.detail;
|
||||
}
|
||||
}
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* AuthenticationServiceSoapPort.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package org.alfresco.example.webservice.authentication;
|
||||
|
||||
public interface AuthenticationServiceSoapPort extends java.rmi.Remote {
|
||||
public org.alfresco.example.webservice.authentication.AuthenticationResult startSession(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException, org.alfresco.example.webservice.authentication.AuthenticationFault;
|
||||
public void endSession() throws java.rmi.RemoteException, org.alfresco.example.webservice.authentication.AuthenticationFault;
|
||||
}
|
Reference in New Issue
Block a user