[jboss-svn-commits] JBL Code SVN: r7510 - in labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web: . generated

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 9 13:21:46 EST 2006


Author: daniel.brum at jboss.com
Date: 2006-11-09 13:21:43 -0500 (Thu, 09 Nov 2006)
New Revision: 7510

Added:
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWS.java
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSBindingStub.java
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSProxy.java
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSService.java
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSServiceLocator.java
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/WebCustomer.java
Log:


Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWS.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWS.java	2006-11-09 18:21:04 UTC (rev 7509)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWS.java	2006-11-09 18:21:43 UTC (rev 7510)
@@ -0,0 +1,13 @@
+/**
+ * LoanBrokerESBWS.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+
+public interface LoanBrokerESBWS extends java.rmi.Remote {
+    public void requestLoan(org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer webCustomer_1) throws java.rmi.RemoteException;
+}

Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSBindingStub.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSBindingStub.java	2006-11-09 18:21:04 UTC (rev 7509)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSBindingStub.java	2006-11-09 18:21:43 UTC (rev 7510)
@@ -0,0 +1,168 @@
+/**
+ * LoanBrokerESBWSBindingStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+
+public class LoanBrokerESBWSBindingStub extends org.apache.axis.client.Stub implements org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS {
+    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[1];
+        _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("RequestLoan");
+        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "WebCustomer_1"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://localhost/trailblazerWS", "WebCustomer"), org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer.class, false, false);
+        oper.addParameter(param);
+        oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
+        oper.setStyle(org.apache.axis.constants.Style.RPC);
+        oper.setUse(org.apache.axis.constants.Use.LITERAL);
+        _operations[0] = oper;
+
+    }
+
+    public LoanBrokerESBWSBindingStub() throws org.apache.axis.AxisFault {
+         this(null);
+    }
+
+    public LoanBrokerESBWSBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+         this(service);
+         super.cachedEndpoint = endpointURL;
+    }
+
+    @SuppressWarnings({ "unused", "unchecked" })
+    public LoanBrokerESBWSBindingStub(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://localhost/trailblazerWS", "WebCustomer");
+            cachedSerQNames.add(qName);
+            cls = org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer.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 void requestLoan(org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer webCustomer_1) throws java.rmi.RemoteException {
+        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("");
+        _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://localhost/trailblazerWS", "RequestLoan"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+ try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {webCustomer_1});
+
+        if (_resp instanceof java.rmi.RemoteException) {
+            throw (java.rmi.RemoteException)_resp;
+        }
+        extractAttachments(_call);
+  } catch (org.apache.axis.AxisFault axisFaultException) {
+  throw axisFaultException;
+}
+    }
+
+}

Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSProxy.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSProxy.java	2006-11-09 18:21:04 UTC (rev 7509)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerESBWSProxy.java	2006-11-09 18:21:43 UTC (rev 7510)
@@ -0,0 +1,50 @@
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+
+public class LoanBrokerESBWSProxy implements org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS {
+  private String _endpoint = null;
+  private org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS loanBrokerESBWS = null;
+  
+  public LoanBrokerESBWSProxy() {
+    _initLoanBrokerESBWSProxy();
+  }
+  
+  private void _initLoanBrokerESBWSProxy() {
+    try {
+      loanBrokerESBWS = (new org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSServiceLocator()).getLoanBrokerESBWSPort();
+      if (loanBrokerESBWS != null) {
+        if (_endpoint != null)
+          ((javax.xml.rpc.Stub)loanBrokerESBWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
+        else
+          _endpoint = (String)((javax.xml.rpc.Stub)loanBrokerESBWS)._getProperty("javax.xml.rpc.service.endpoint.address");
+      }
+      
+    }
+    catch (javax.xml.rpc.ServiceException serviceException) {}
+  }
+  
+  public String getEndpoint() {
+    return _endpoint;
+  }
+  
+  public void setEndpoint(String endpoint) {
+    _endpoint = endpoint;
+    if (loanBrokerESBWS != null)
+      ((javax.xml.rpc.Stub)loanBrokerESBWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
+    
+  }
+  
+  public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS getLoanBrokerESBWS() {
+    if (loanBrokerESBWS == null)
+      _initLoanBrokerESBWSProxy();
+    return loanBrokerESBWS;
+  }
+  
+  public void requestLoan(org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer webCustomer_1) throws java.rmi.RemoteException{
+    if (loanBrokerESBWS == null)
+      _initLoanBrokerESBWSProxy();
+    loanBrokerESBWS.requestLoan(webCustomer_1);
+  }
+  
+  
+}
\ No newline at end of file

Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSService.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSService.java	2006-11-09 18:21:04 UTC (rev 7509)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSService.java	2006-11-09 18:21:43 UTC (rev 7510)
@@ -0,0 +1,16 @@
+/**
+ * LoanBrokerWSService.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+public interface LoanBrokerWSService extends javax.xml.rpc.Service {
+    public java.lang.String getLoanBrokerESBWSPortAddress();
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS getLoanBrokerESBWSPort() throws javax.xml.rpc.ServiceException;
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS getLoanBrokerESBWSPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
+}

Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSServiceLocator.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSServiceLocator.java	2006-11-09 18:21:04 UTC (rev 7509)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSServiceLocator.java	2006-11-09 18:21:43 UTC (rev 7510)
@@ -0,0 +1,144 @@
+/**
+ * LoanBrokerWSServiceLocator.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+ at SuppressWarnings("serial")
+public class LoanBrokerWSServiceLocator extends org.apache.axis.client.Service implements org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSService {
+
+    public LoanBrokerWSServiceLocator() {
+    }
+
+
+    public LoanBrokerWSServiceLocator(org.apache.axis.EngineConfiguration config) {
+        super(config);
+    }
+
+    public LoanBrokerWSServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
+        super(wsdlLoc, sName);
+    }
+
+    // Use to get a proxy class for LoanBrokerESBWSPort
+    private java.lang.String LoanBrokerESBWSPort_address = "http://d820:8080/trailblazer/LoanBrokerWS";
+
+    public java.lang.String getLoanBrokerESBWSPortAddress() {
+        return LoanBrokerESBWSPort_address;
+    }
+
+    // The WSDD service name defaults to the port name.
+    private java.lang.String LoanBrokerESBWSPortWSDDServiceName = "LoanBrokerESB-WSPort";
+
+    public java.lang.String getLoanBrokerESBWSPortWSDDServiceName() {
+        return LoanBrokerESBWSPortWSDDServiceName;
+    }
+
+    public void setLoanBrokerESBWSPortWSDDServiceName(java.lang.String name) {
+        LoanBrokerESBWSPortWSDDServiceName = name;
+    }
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS getLoanBrokerESBWSPort() throws javax.xml.rpc.ServiceException {
+       java.net.URL endpoint;
+        try {
+            endpoint = new java.net.URL(LoanBrokerESBWSPort_address);
+        }
+        catch (java.net.MalformedURLException e) {
+            throw new javax.xml.rpc.ServiceException(e);
+        }
+        return getLoanBrokerESBWSPort(endpoint);
+    }
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS getLoanBrokerESBWSPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
+        try {
+            org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWSBindingStub _stub = new org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWSBindingStub(portAddress, this);
+            _stub.setPortName(getLoanBrokerESBWSPortWSDDServiceName());
+            return _stub;
+        }
+        catch (org.apache.axis.AxisFault e) {
+            return null;
+        }
+    }
+
+    public void setLoanBrokerESBWSPortEndpointAddress(java.lang.String address) {
+        LoanBrokerESBWSPort_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.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWS.class.isAssignableFrom(serviceEndpointInterface)) {
+                org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWSBindingStub _stub = new org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerESBWSBindingStub(new java.net.URL(LoanBrokerESBWSPort_address), this);
+                _stub.setPortName(getLoanBrokerESBWSPortWSDDServiceName());
+                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 ("LoanBrokerESB-WSPort".equals(inputPortName)) {
+            return getLoanBrokerESBWSPort();
+        }
+        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://localhost/trailblazerWS", "LoanBrokerWSService");
+    }
+
+    private java.util.HashSet ports = null;
+
+    @SuppressWarnings("unchecked")
+	public java.util.Iterator getPorts() {
+        if (ports == null) {
+            ports = new java.util.HashSet();
+            ports.add(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "LoanBrokerESB-WSPort"));
+        }
+        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 ("LoanBrokerESBWSPort".equals(portName)) {
+            setLoanBrokerESBWSPortEndpointAddress(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);
+    }
+
+}

Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/WebCustomer.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/WebCustomer.java	2006-11-09 18:21:04 UTC (rev 7509)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/WebCustomer.java	2006-11-09 18:21:43 UTC (rev 7510)
@@ -0,0 +1,356 @@
+/**
+ * WebCustomer.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
+ */
+
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+ at SuppressWarnings("serial")
+public class WebCustomer  implements java.io.Serializable {
+    private java.lang.String address;
+
+    private java.lang.String email;
+
+    private java.lang.String employerName;
+
+    private double loanAmount;
+
+    private int loanDuration;
+
+    private java.lang.String name;
+
+    private double salary;
+
+    private int ssn;
+
+    public WebCustomer() {
+    }
+
+    public WebCustomer(
+           java.lang.String address,
+           java.lang.String email,
+           java.lang.String employerName,
+           double loanAmount,
+           int loanDuration,
+           java.lang.String name,
+           double salary,
+           int ssn) {
+           this.address = address;
+           this.email = email;
+           this.employerName = employerName;
+           this.loanAmount = loanAmount;
+           this.loanDuration = loanDuration;
+           this.name = name;
+           this.salary = salary;
+           this.ssn = ssn;
+    }
+
+
+    /**
+     * Gets the address value for this WebCustomer.
+     * 
+     * @return address
+     */
+    public java.lang.String getAddress() {
+        return address;
+    }
+
+
+    /**
+     * Sets the address value for this WebCustomer.
+     * 
+     * @param address
+     */
+    public void setAddress(java.lang.String address) {
+        this.address = address;
+    }
+
+
+    /**
+     * Gets the email value for this WebCustomer.
+     * 
+     * @return email
+     */
+    public java.lang.String getEmail() {
+        return email;
+    }
+
+
+    /**
+     * Sets the email value for this WebCustomer.
+     * 
+     * @param email
+     */
+    public void setEmail(java.lang.String email) {
+        this.email = email;
+    }
+
+
+    /**
+     * Gets the employerName value for this WebCustomer.
+     * 
+     * @return employerName
+     */
+    public java.lang.String getEmployerName() {
+        return employerName;
+    }
+
+
+    /**
+     * Sets the employerName value for this WebCustomer.
+     * 
+     * @param employerName
+     */
+    public void setEmployerName(java.lang.String employerName) {
+        this.employerName = employerName;
+    }
+
+
+    /**
+     * Gets the loanAmount value for this WebCustomer.
+     * 
+     * @return loanAmount
+     */
+    public double getLoanAmount() {
+        return loanAmount;
+    }
+
+
+    /**
+     * Sets the loanAmount value for this WebCustomer.
+     * 
+     * @param loanAmount
+     */
+    public void setLoanAmount(double loanAmount) {
+        this.loanAmount = loanAmount;
+    }
+
+
+    /**
+     * Gets the loanDuration value for this WebCustomer.
+     * 
+     * @return loanDuration
+     */
+    public int getLoanDuration() {
+        return loanDuration;
+    }
+
+
+    /**
+     * Sets the loanDuration value for this WebCustomer.
+     * 
+     * @param loanDuration
+     */
+    public void setLoanDuration(int loanDuration) {
+        this.loanDuration = loanDuration;
+    }
+
+
+    /**
+     * Gets the name value for this WebCustomer.
+     * 
+     * @return name
+     */
+    public java.lang.String getName() {
+        return name;
+    }
+
+
+    /**
+     * Sets the name value for this WebCustomer.
+     * 
+     * @param name
+     */
+    public void setName(java.lang.String name) {
+        this.name = name;
+    }
+
+
+    /**
+     * Gets the salary value for this WebCustomer.
+     * 
+     * @return salary
+     */
+    public double getSalary() {
+        return salary;
+    }
+
+
+    /**
+     * Sets the salary value for this WebCustomer.
+     * 
+     * @param salary
+     */
+    public void setSalary(double salary) {
+        this.salary = salary;
+    }
+
+
+    /**
+     * Gets the ssn value for this WebCustomer.
+     * 
+     * @return ssn
+     */
+    public int getSsn() {
+        return ssn;
+    }
+
+
+    /**
+     * Sets the ssn value for this WebCustomer.
+     * 
+     * @param ssn
+     */
+    public void setSsn(int ssn) {
+        this.ssn = ssn;
+    }
+
+    private java.lang.Object __equalsCalc = null;
+    public synchronized boolean equals(java.lang.Object obj) {
+        if (!(obj instanceof WebCustomer)) return false;
+        WebCustomer other = (WebCustomer) obj;
+        if (obj == null) return false;
+        if (this == obj) return true;
+        if (__equalsCalc != null) {
+            return (__equalsCalc == obj);
+        }
+        __equalsCalc = obj;
+        boolean _equals;
+        _equals = true && 
+            ((this.address==null && other.getAddress()==null) || 
+             (this.address!=null &&
+              this.address.equals(other.getAddress()))) &&
+            ((this.email==null && other.getEmail()==null) || 
+             (this.email!=null &&
+              this.email.equals(other.getEmail()))) &&
+            ((this.employerName==null && other.getEmployerName()==null) || 
+             (this.employerName!=null &&
+              this.employerName.equals(other.getEmployerName()))) &&
+            this.loanAmount == other.getLoanAmount() &&
+            this.loanDuration == other.getLoanDuration() &&
+            ((this.name==null && other.getName()==null) || 
+             (this.name!=null &&
+              this.name.equals(other.getName()))) &&
+            this.salary == other.getSalary() &&
+            this.ssn == other.getSsn();
+        __equalsCalc = null;
+        return _equals;
+    }
+
+    private boolean __hashCodeCalc = false;
+    public synchronized int hashCode() {
+        if (__hashCodeCalc) {
+            return 0;
+        }
+        __hashCodeCalc = true;
+        int _hashCode = 1;
+        if (getAddress() != null) {
+            _hashCode += getAddress().hashCode();
+        }
+        if (getEmail() != null) {
+            _hashCode += getEmail().hashCode();
+        }
+        if (getEmployerName() != null) {
+            _hashCode += getEmployerName().hashCode();
+        }
+        _hashCode += new Double(getLoanAmount()).hashCode();
+        _hashCode += getLoanDuration();
+        if (getName() != null) {
+            _hashCode += getName().hashCode();
+        }
+        _hashCode += new Double(getSalary()).hashCode();
+        _hashCode += getSsn();
+        __hashCodeCalc = false;
+        return _hashCode;
+    }
+
+    // Type metadata
+    private static org.apache.axis.description.TypeDesc typeDesc =
+        new org.apache.axis.description.TypeDesc(WebCustomer.class, true);
+
+    static {
+        typeDesc.setXmlType(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "WebCustomer"));
+        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("address");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "address"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        elemField.setNillable(true);
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("email");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "email"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        elemField.setNillable(true);
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("employerName");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "employerName"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        elemField.setNillable(true);
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("loanAmount");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "loanAmount"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
+        elemField.setNillable(false);
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("loanDuration");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "loanDuration"));
+        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("name");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "name"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        elemField.setNillable(true);
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("salary");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "salary"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
+        elemField.setNillable(false);
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("ssn");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/trailblazerWS", "ssn"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+        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);
+    }
+
+}




More information about the jboss-svn-commits mailing list