[jboss-svn-commits] JBL Code SVN: r7686 - 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
Fri Nov 17 11:41:39 EST 2006


Author: daniel.brum at jboss.com
Date: 2006-11-17 11:41:35 -0500 (Fri, 17 Nov 2006)
New Revision: 7686

Added:
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWS.java
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSBindingStub.java
Modified:
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.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:


Modified: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java	2006-11-17 15:56:47 UTC (rev 7685)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java	2006-11-17 16:41:35 UTC (rev 7686)
@@ -33,7 +33,6 @@
 import org.jboss.internal.soa.esb.thirdparty.Base64;
 import org.jboss.soa.esb.addressing.EPR;
 import org.jboss.soa.esb.addressing.eprs.JMSEpr;
-import org.jboss.soa.esb.common.Environment;
 import org.jboss.soa.esb.common.ModulePropertyManager;
 import org.jboss.soa.esb.couriers.Courier;
 import org.jboss.soa.esb.couriers.CourierFactory;
@@ -44,14 +43,19 @@
 import org.jboss.soa.esb.services.registry.RegistryFactory;
 
 /**
- * The Loan broker web service, which will handle a loan request. First a credit
- * score is obtained from a credit agency. Then 2 banks are send request for
- * an interest rate quote.
+ * The Loan broker web service, which will handle a loan request. 
  */
- at WebService(name = "LoanBrokerESB-WS", targetNamespace = "http://localhost/trailblazerWS")
+ at WebService(name = "LoanBrokerWS", targetNamespace = "http://localhost/loanbroker")
 @SOAPBinding(style = SOAPBinding.Style.RPC)
 public class LoanBrokerWS 
 {
+	
+	private static Logger logger = Logger.getLogger(LoanBrokerWS.class);
+	//used to locate our entries in the trailblazer-properties.xml
+	private final String MODULE_NAME = "trailblazer";
+	private final String SERVICE_NAME = "org.jboss.soa.esb.trailblazer.request.service.epr.name";
+	private final String SERVICE_CAT  = "org.jboss.soa.esb.trailblazer.request.service.category";	
+	
 	@WebMethod
 	// method name is .NET friendly
 	public void RequestLoan(WebCustomer customer) {
@@ -63,31 +67,24 @@
 			 * to see how a non-Message aware situation is handled
 			 */
 			System.setProperty("org.jboss.soa.esb.propertyFile", "trailblazer-properties.xml");
-			logger.info("WebCustomer received: \n" + customer);
-			//System.setProperty("com.arjuna.common.util.propertyservice.verbosePropertyManager", "ON");
+			System.setProperty("com.arjuna.common.util.propertyservice.verbosePropertyManager", "ON");
+			logger.info("WebCustomer received: \n" + customer);			
 			
-//			if (config == null) {
-//				readConfigurationFile();
-//			}
-			
 			//Step 1 - convert customer from web service into a ESB Message
 			Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
 			message.getBody().setContents(Base64.encodeObject(customer).getBytes());
 			
 			//step 2 - locate the service in the registry
 			Registry registry = RegistryFactory.getRegistry();
-			//read in the values from the jbossesb-properties.xml if possible
 			String serviceCategoryName = ModulePropertyManager.getPropertyManager(MODULE_NAME).getProperty(SERVICE_CAT, "trailblazer");
 			String serviceName = ModulePropertyManager.getPropertyManager(MODULE_NAME).getProperty(SERVICE_NAME, "LoanRequestService");;
-//			String serviceCategoryName = "trailblazer";
-//			String serviceName         = "LoanRequestService";
+
 			
 			logger.debug("looking for the following service in the registry -- Category: " + serviceCategoryName);
-			logger.debug("looking for the following service in the registry -- Name: " + serviceName);
+			logger.debug("looking for the following service in the registry -- Name: " + serviceName);		
 			
-			Collection<EPR> eprs = registry.findEPRs(serviceCategoryName, serviceName);
-			
 			//Step 3 - use the service to send the message
+			Collection<EPR> eprs = registry.findEPRs(serviceCategoryName, serviceName);
 			for (Iterator<EPR> eprIterator=eprs.iterator();eprIterator.hasNext();){
 				//Just use the first EPR in the list.
 				EPR epr = eprIterator.next();
@@ -114,10 +111,6 @@
 	}
 	
 	
-	//class attributes
-	private static Logger logger = Logger.getLogger(LoanBrokerWS.class);
-	private final String MODULE_NAME = "trailblazer";
-	private final String SERVICE_NAME = "org.jboss.soa.esb.trailblazer.request.service.epr.name";
-	private final String SERVICE_CAT  = "org.jboss.soa.esb.trailblazer.request.service.category";	
+		
 
 }

Added: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWS.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWS.java	2006-11-17 15:56:47 UTC (rev 7685)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWS.java	2006-11-17 16:41:35 UTC (rev 7686)
@@ -0,0 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+public interface LoanBrokerWS 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/LoanBrokerWSBindingStub.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSBindingStub.java	2006-11-17 15:56:47 UTC (rev 7685)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSBindingStub.java	2006-11-17 16:41:35 UTC (rev 7686)
@@ -0,0 +1,162 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+public class LoanBrokerWSBindingStub extends org.apache.axis.client.Stub implements org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWS {
+    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;
+        oper = new org.apache.axis.description.OperationDesc();
+        oper.setName("RequestLoan");
+        oper.addParameter(new javax.xml.namespace.QName("", "WebCustomer_1"), new javax.xml.namespace.QName("http://localhost/loanbroker", "WebCustomer"), org.jboss.soa.esb.samples.trailblazer.web.generated.WebCustomer.class, org.apache.axis.description.ParameterDesc.IN, false, false);
+        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 LoanBrokerWSBindingStub() throws org.apache.axis.AxisFault {
+         this(null);
+    }
+
+    public LoanBrokerWSBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+         this(service);
+         super.cachedEndpoint = endpointURL;
+    }
+
+    public LoanBrokerWSBindingStub(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;
+        }
+//            java.lang.Class cls;
+//            javax.xml.namespace.QName qName;
+//            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;
+//            qName = new javax.xml.namespace.QName("http://localhost/loanbroker", "WebCustomer");
+//            cachedSerQNames.add(qName);
+//            cls = org.jboss.soa.esb.samples.loanbroker.web.client.WebCustomer.class;
+//            cachedSerClasses.add(cls);
+//            cachedSerFactories.add(beansf);
+//            cachedDeserFactories.add(beandf);
+
+    }
+
+    private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
+        try {
+            org.apache.axis.client.Call _call =
+                    (org.apache.axis.client.Call) super.service.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.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);
+                    }
+                }
+            }
+            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/loanbroker", "RequestLoan"));
+
+        setRequestHeaders(_call);
+        setAttachments(_call);
+        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);
+    }
+
+}

Modified: 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-17 15:56:47 UTC (rev 7685)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSService.java	2006-11-17 16:41:35 UTC (rev 7686)
@@ -1,16 +1,30 @@
-/**
- * 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;
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+public interface LoanBrokerWSService extends javax.xml.rpc.Service {
+    public java.lang.String getLoanBrokerWSPortAddress();
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWS getLoanBrokerWSPort() throws javax.xml.rpc.ServiceException;
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWS getLoanBrokerWSPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
+}

Modified: 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-17 15:56:47 UTC (rev 7685)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/LoanBrokerWSServiceLocator.java	2006-11-17 16:41:35 UTC (rev 7686)
@@ -1,144 +1,143 @@
-/**
- * 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);
-    }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+public class LoanBrokerWSServiceLocator extends org.apache.axis.client.Service implements org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSService {
+
+	private static final long serialVersionUID = 1L;
+	// Use to get a proxy class for LoanBrokerWSPort
+    private java.lang.String LoanBrokerWSPort_address = "http://localhost:8080/loanbroker/LoanBrokerWS";
+
+    public java.lang.String getLoanBrokerWSPortAddress() {
+        return LoanBrokerWSPort_address;
+    }
+
+    // The WSDD service name defaults to the port name.
+    private java.lang.String LoanBrokerWSPortWSDDServiceName = "LoanBrokerWSPort";
+
+    public java.lang.String getLoanBrokerWSPortWSDDServiceName() {
+        return LoanBrokerWSPortWSDDServiceName;
+    }
+
+    public void setLoanBrokerWSPortWSDDServiceName(java.lang.String name) {
+        LoanBrokerWSPortWSDDServiceName = name;
+    }
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWS getLoanBrokerWSPort() throws javax.xml.rpc.ServiceException {
+       java.net.URL endpoint;
+        try {
+            endpoint = new java.net.URL(LoanBrokerWSPort_address);
+        }
+        catch (java.net.MalformedURLException e) {
+            throw new javax.xml.rpc.ServiceException(e);
+        }
+        return getLoanBrokerWSPort(endpoint);
+    }
+
+    public org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWS getLoanBrokerWSPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
+        try {
+        	org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSBindingStub _stub = new org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSBindingStub(portAddress, this);
+            _stub.setPortName(getLoanBrokerWSPortWSDDServiceName());
+            return _stub;
+        }
+        catch (org.apache.axis.AxisFault e) {
+            return null;
+        }
+    }
+
+    public void setLoanBrokerWSPortEndpointAddress(java.lang.String address) {
+        LoanBrokerWSPort_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.LoanBrokerWS.class.isAssignableFrom(serviceEndpointInterface)) {
+            	org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSBindingStub _stub = new org.jboss.soa.esb.samples.trailblazer.web.generated.LoanBrokerWSBindingStub(new java.net.URL(LoanBrokerWSPort_address), this);
+                _stub.setPortName(getLoanBrokerWSPortWSDDServiceName());
+                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);
+        }
+        String inputPortName = portName.getLocalPart();
+        if ("LoanBrokerWSPort".equals(inputPortName)) {
+            return getLoanBrokerWSPort();
+        }
+        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/loanbroker", "LoanBrokerWSService");
+    }
+
+    private java.util.HashSet<javax.xml.namespace.QName> ports = null;
+
+    public java.util.Iterator getPorts() {
+        if (ports == null) {
+            ports = new java.util.HashSet<javax.xml.namespace.QName>();
+            ports.add(new javax.xml.namespace.QName("LoanBrokerWSPort"));
+        }
+        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 ("LoanBrokerWSPort".equals(portName)) {
+            setLoanBrokerWSPortEndpointAddress(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);
+    }
+
+}

Modified: 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-17 15:56:47 UTC (rev 7685)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/generated/WebCustomer.java	2006-11-17 16:41:35 UTC (rev 7686)
@@ -1,356 +1,310 @@
-/**
- * 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);
-    }
-
-}
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.samples.trailblazer.web.generated;
+
+public class WebCustomer  implements java.io.Serializable {
+    
+	private static final long serialVersionUID = 1L;
+	private java.lang.String address;
+	private 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() {
+    }
+
+
+    /**
+     * 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 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 amountValue 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;
+    }
+
+    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.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();
+        __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 (getEmployerName() != null) {
+            _hashCode += getEmployerName().hashCode();
+        }
+        _hashCode += new Double(getLoanAmount()).hashCode();
+        _hashCode += getLoanDuration();
+        if (getName() != null) {
+            _hashCode += getName().hashCode();
+        }
+        _hashCode += new Double(getSalary()).hashCode();
+        __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/loanbroker", "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/loanbroker", "address"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("email");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "email"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("employerName");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "employerName"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("loanAmount");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "loanAmount"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("loanDuration");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "loanDuration"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("name");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "name"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("salary");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "salary"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
+        typeDesc.addFieldDesc(elemField);
+        elemField = new org.apache.axis.description.ElementDesc();
+        elemField.setFieldName("ssn");
+        elemField.setXmlName(new javax.xml.namespace.QName("http://localhost/loanbroker", "ssn"));
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+        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);
+    }
+
+
+	public String getEmail() {
+		return email;
+	}
+
+
+	public void setEmail(String email) {
+		this.email = email;
+	}
+
+
+	public int getSsn() {
+		return ssn;
+	}
+
+
+	public void setSsn(int ssn) {
+		this.ssn = ssn;
+	}
+
+}




More information about the jboss-svn-commits mailing list