Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 6707 invoked from network); 15 Aug 2007 11:56:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Aug 2007 11:56:15 -0000 Received: (qmail 74765 invoked by uid 500); 15 Aug 2007 11:56:12 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 74665 invoked by uid 500); 15 Aug 2007 11:56:12 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 74654 invoked by uid 500); 15 Aug 2007 11:56:12 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 74651 invoked by uid 99); 15 Aug 2007 11:56:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 04:56:12 -0700 X-ASF-Spam-Status: No, hits=-98.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2007 11:56:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 62B391A981A; Wed, 15 Aug 2007 04:55:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r566114 - in /webservices/axis2/trunk/java/modules/rmi: src/org/apache/axis2/rmi/ src/org/apache/axis2/rmi/databind/ src/org/apache/axis2/rmi/deploy/ src/org/apache/axis2/rmi/deploy/config/ test/org/apache/axis2/rmi/client/ test/org/apache/... Date: Wed, 15 Aug 2007 11:55:52 -0000 To: axis2-cvs@ws.apache.org From: amilas@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070815115553.62B391A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: amilas Date: Wed Aug 15 04:55:50 2007 New Revision: 566114 URL: http://svn.apache.org/viewvc?view=rev&rev=566114 Log: add a simpleTypehandler support so that users can give a custom simple type handler if they want to change the defult serializing and deserializing Added: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/SimpleTypeHandler.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/util/ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/util/CustomSimpleTypeHandler.java Modified: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/Configurator.java webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/JavaObjectSerializer.java webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/XmlStreamParser.java webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/RMIServiceDeployer.java webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/config/Config.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/client/RMIClientService1Test.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/ConfigObjectTest.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/MapServiceTest.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1Interface.java Modified: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/Configurator.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/Configurator.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/Configurator.java (original) +++ webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/Configurator.java Wed Aug 15 04:55:50 2007 @@ -16,6 +16,8 @@ package org.apache.axis2.rmi; import org.apache.axis2.rmi.util.Constants; +import org.apache.axis2.rmi.databind.SimpleTypeHandler; +import org.apache.axis2.databinding.typemapping.SimpleTypeMapper; import java.util.List; import java.util.ArrayList; @@ -31,16 +33,19 @@ private boolean isBare; private List extensionClasses; private Map packageToNamespaceMap; + private SimpleTypeHandler simpleTypeHandler; public Configurator() { this.extensionClasses = new ArrayList(); this.packageToNamespaceMap = new HashMap(); + populateDefualtValues(); } private void populateDefualtValues(){ // we want to keep key and value attributes in null names pace. this.packageToNamespaceMap.put("org.apache.axis2.rmi.types", Constants.RMI_TYPE_NAMSPACE); + this.simpleTypeHandler = new SimpleTypeHandler(); } public String getNamespace(String packageName){ @@ -74,5 +79,13 @@ public void setExtensionClasses(List extensionClasses) { this.extensionClasses = extensionClasses; + } + + public SimpleTypeHandler getSimpleTypeHandler() { + return simpleTypeHandler; + } + + public void setSimpleTypeHandler(SimpleTypeHandler simpleTypeHandler) { + this.simpleTypeHandler = simpleTypeHandler; } } Modified: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/JavaObjectSerializer.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/JavaObjectSerializer.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/JavaObjectSerializer.java (original) +++ webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/JavaObjectSerializer.java Wed Aug 15 04:55:50 2007 @@ -49,6 +49,8 @@ private Map processedTypeMap; private Configurator configurator; private Map schemaMap; + private SimpleTypeHandler simpleTypeHandler; + private Class simpleTypeHandlerClass; public JavaObjectSerializer(Map processedTypeMap, Configurator configurator, @@ -56,6 +58,8 @@ this.processedTypeMap = processedTypeMap; this.configurator = configurator; this.schemaMap = schemaMap; + this.simpleTypeHandler = this.configurator.getSimpleTypeHandler(); + this.simpleTypeHandlerClass = this.simpleTypeHandler.getClass(); } /** @@ -261,10 +265,9 @@ // this is a know type for us // get the string represenation of this object using converter util class. try { - Class converterUtilClass = ConverterUtil.class; - Method methodToInvoke = converterUtilClass.getMethod("convertToString", new Class[]{type.getJavaClass()}); + Method methodToInvoke = this.simpleTypeHandlerClass.getMethod("convertToString", new Class[]{type.getJavaClass()}); // these methods are static so use null as the object argument - String stringValue = (String) methodToInvoke.invoke(null, new Object[]{object}); + String stringValue = (String) methodToInvoke.invoke(this.simpleTypeHandler, new Object[]{object}); if (!type.getJavaClass().equals(Object.class)) { writer.writeCharacters(stringValue); } Added: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/SimpleTypeHandler.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/SimpleTypeHandler.java?view=auto&rev=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/SimpleTypeHandler.java (added) +++ webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/SimpleTypeHandler.java Wed Aug 15 04:55:50 2007 @@ -0,0 +1,144 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.axis2.rmi.databind; + +import org.apache.axis2.databinding.utils.ConverterUtil; + +import java.util.Calendar; +import java.util.Date; + +/** + * this class is used to handle simple types serializing and deserializing + */ +public class SimpleTypeHandler { + + ///////////////////////////////////////////////////////////// + // + // convertToString mehtods + // + ///////////////////////////////////////////////////////////// + + public String convertToString(int i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(float i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(long i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(double i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(byte i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(char i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(short i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(boolean i) { + return ConverterUtil.convertToString(i); + } + + public String convertToString(Date value) { + return ConverterUtil.convertToString(value); + } + + public String convertToString(Calendar value) { + return ConverterUtil.convertToString(value); + } + + public String convertToString(Byte o) { + return ConverterUtil.convertToString(o); + } + + public String convertToString(Integer o) { + return ConverterUtil.convertToString(o); + } + + public String convertToString(Long o) { + return ConverterUtil.convertToString(o); + } + + public String convertToString(Short o) { + return ConverterUtil.convertToString(o); + } + + public String convertToString(Double o) { + return ConverterUtil.convertToString(o); + } + + public String convertToString(Float o) { + return ConverterUtil.convertToString(o); + } + + ///////////////////////////////////////////////////////////// + // + // convertFromString mehtods + // + ///////////////////////////////////////////////////////////// + + public int convertToInt(String s) { + return ConverterUtil.convertToInt(s); + } + + public double convertToDouble(String s) { + return ConverterUtil.convertToDouble(s); + } + + public float convertToFloat(String s) { + return ConverterUtil.convertToFloat(s); + } + + public String convertToString(String s) { + return ConverterUtil.convertToString(s); + } + + public long convertToLong(String s) { + return ConverterUtil.convertToLong(s); + } + + public short convertToShort(String s) { + return ConverterUtil.convertToShort(s); + } + + public boolean convertToBoolean(String s) { + return ConverterUtil.convertToBoolean(s); + } + + public byte convertToByte(String s) { + return ConverterUtil.convertToByte(s); + } + + public Date convertToDate(String s) { + return ConverterUtil.convertToDate(s); + } + + public Calendar convertToDateTime(String s) { + return ConverterUtil.convertToDateTime(s); + } + +} Modified: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/XmlStreamParser.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/XmlStreamParser.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/XmlStreamParser.java (original) +++ webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/databind/XmlStreamParser.java Wed Aug 15 04:55:50 2007 @@ -41,11 +41,15 @@ private Configurator configurator; private Map qNameToTypeMap; + private SimpleTypeHandler simpleTypeHandler; + private Class simpleTypeHandlerClass; public XmlStreamParser(Map processedTypeMap, Configurator configurator, Map schemaMap) { this.configurator = configurator; + this.simpleTypeHandler = this.configurator.getSimpleTypeHandler(); + this.simpleTypeHandlerClass = this.simpleTypeHandler.getClass(); try { populateQNameToTypeMap(processedTypeMap, schemaMap); } catch (MetaDataPopulateException e) { @@ -196,8 +200,8 @@ String methodName = null; try { methodName = getMethodName(type.getJavaClass().getName()); - Method methodToInvoke = ConverterUtil.class.getMethod(methodName,new Class[]{String.class}); - returnObject = methodToInvoke.invoke(null,new Object[]{reader.getText()}); + Method methodToInvoke = this.simpleTypeHandlerClass.getMethod(methodName,new Class[]{String.class}); + returnObject = methodToInvoke.invoke(this.simpleTypeHandler,new Object[]{reader.getText()}); } catch (NoSuchMethodException e) { throw new XmlParsingException("Can not invoke the converter util class method " + methodName, e); } Modified: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/RMIServiceDeployer.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/RMIServiceDeployer.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/RMIServiceDeployer.java (original) +++ webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/RMIServiceDeployer.java Wed Aug 15 04:55:50 2007 @@ -27,6 +27,7 @@ import org.apache.axis2.rmi.deploy.config.PackageToNamespaceMap; import org.apache.axis2.rmi.Configurator; import org.apache.axis2.rmi.databind.XmlStreamParser; +import org.apache.axis2.rmi.databind.SimpleTypeHandler; import org.apache.axis2.rmi.exception.MetaDataPopulateException; import org.apache.axis2.rmi.exception.XmlParsingException; import org.apache.axis2.rmi.exception.ConfigFileReadingException; @@ -91,6 +92,21 @@ configurator.addPackageToNamespaceMaping(packageToNamespaceMapings[i].getPackageName(), packageToNamespaceMapings[i].getNamespace()); } + } + } + + // set the simple type data handler if it is set + if ((configObject.getSimpleDataHandlerClass() != null) + && (configObject.getSimpleDataHandlerClass().trim().length() > 0)){ + Class simpleTypeHandlerClass = + Loader.loadClass(deploymentClassLoader,configObject.getSimpleDataHandlerClass()); + try { + SimpleTypeHandler simpleTypeHandler = (SimpleTypeHandler) simpleTypeHandlerClass.newInstance(); + configurator.setSimpleTypeHandler(simpleTypeHandler); + } catch (InstantiationException e) { + throw new DeploymentException("Can not instantiate simple type handler",e); + } catch (IllegalAccessException e) { + throw new DeploymentException("Can not instantiate simple type handler",e); } } Modified: webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/config/Config.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/config/Config.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/config/Config.java (original) +++ webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/deploy/config/Config.java Wed Aug 15 04:55:50 2007 @@ -20,6 +20,7 @@ private Services services; private ExtensionClasses extensionClasses; private PackageToNamespaceMapings packageToNamespaceMapings; + private String simpleDataHandlerClass; public Services getServices() { return services; @@ -43,6 +44,14 @@ public void setPackageToNamespaceMapings(PackageToNamespaceMapings packageToNamespaceMapings) { this.packageToNamespaceMapings = packageToNamespaceMapings; + } + + public String getSimpleDataHandlerClass() { + return simpleDataHandlerClass; + } + + public void setSimpleDataHandlerClass(String simpleDataHandlerClass) { + this.simpleDataHandlerClass = simpleDataHandlerClass; } } Modified: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/client/RMIClientService1Test.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/client/RMIClientService1Test.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/client/RMIClientService1Test.java (original) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/client/RMIClientService1Test.java Wed Aug 15 04:55:50 2007 @@ -18,11 +18,9 @@ import org.apache.axis2.rmi.server.services.Service1; import org.apache.axis2.rmi.server.services.Service1Interface; import org.apache.axis2.AxisFault; +import org.apache.axis2.databinding.utils.ConverterUtil; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; +import java.util.*; import junit.framework.TestCase; @@ -82,6 +80,19 @@ assertEquals(result.get("key2"), "value2"); } catch (AxisFault axisFault) { axisFault.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. + } + } + + public void testMethod6(){ + try { + Service1Interface proxy = (Service1Interface) RMIClientProxy.createProxy(Service1Interface.class, + "http://localhost:8085/axis2/services/Service1"); + + Date date = new Date(); + Date result = proxy.method6(date); + assertEquals(date.getDate(), result.getDate()); + } catch (AxisFault axisFault) { + axisFault.printStackTrace(); } } } Modified: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/ConfigObjectTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/ConfigObjectTest.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/ConfigObjectTest.java (original) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/ConfigObjectTest.java Wed Aug 15 04:55:50 2007 @@ -63,6 +63,7 @@ packageToNamespaceMaps[1].setPackageName("package2"); packageToNamespaceMapings.setPackageToNamespaceMap(packageToNamespaceMaps); config.setPackageToNamespaceMapings(packageToNamespaceMapings); + config.setSimpleDataHandlerClass("test"); Parameter parameter = new Parameter(Config.class, "config"); @@ -81,6 +82,7 @@ writer.flush(); String configXmlString = configXmlWriter.toString(); + System.out.println("config ==> " + configXmlString); XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(configXmlString.getBytes())); XmlStreamParser xmlStreamParser = new XmlStreamParser(this.processedMap, this.configurator, this.schemaMap); Added: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/util/CustomSimpleTypeHandler.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/util/CustomSimpleTypeHandler.java?view=auto&rev=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/util/CustomSimpleTypeHandler.java (added) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/databind/util/CustomSimpleTypeHandler.java Wed Aug 15 04:55:50 2007 @@ -0,0 +1,29 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.axis2.rmi.databind.util; + +import org.apache.axis2.rmi.databind.SimpleTypeHandler; + +import java.util.Date; +import java.text.SimpleDateFormat; + +public class CustomSimpleTypeHandler extends SimpleTypeHandler { + public String convertToString(Date value) { + System.out.println("Converting date ==> " + value); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-ddZ"); + return simpleDateFormat.format(value); + } +} Modified: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/MapServiceTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/MapServiceTest.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/MapServiceTest.java (original) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/metadata/MapServiceTest.java Wed Aug 15 04:55:50 2007 @@ -15,21 +15,15 @@ */ package org.apache.axis2.rmi.metadata; +import junit.framework.TestCase; +import org.apache.axis2.description.WSDL11ToAxisServiceBuilder; import org.apache.axis2.rmi.Configurator; import org.apache.axis2.rmi.exception.MetaDataPopulateException; import org.apache.axis2.rmi.exception.SchemaGenerationException; -import org.apache.axis2.rmi.metadata.service.FaultService; import org.apache.axis2.rmi.metadata.service.MapService; -import org.apache.axis2.description.WSDL11ToAxisServiceBuilder; import javax.wsdl.Definition; -import javax.wsdl.WSDLException; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLWriter; import java.io.IOException; -import java.io.FileWriter; - -import junit.framework.TestCase; public class MapServiceTest extends TestCase { Modified: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java (original) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/ServerTest.java Wed Aug 15 04:55:50 2007 @@ -19,6 +19,7 @@ import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.context.ConfigurationContextFactory; import org.apache.axis2.rmi.Configurator; +import org.apache.axis2.rmi.databind.util.CustomSimpleTypeHandler; import org.apache.axis2.rmi.deploy.ClassDeployer; import org.apache.axis2.rmi.exception.MetaDataPopulateException; import org.apache.axis2.rmi.exception.SchemaGenerationException; @@ -45,7 +46,9 @@ ConfigurationContextFactory.createConfigurationContextFromFileSystem( AXIS2_REPOSITORY_LOCATION, AXIS2_CONFIG_FILE); // add the service -// ClassDeployer classDeployer = new ClassDeployer(confContext); +// Configurator configurator = new Configurator(); +// configurator.setSimpleTypeHandler(new CustomSimpleTypeHandler()); +// ClassDeployer classDeployer = new ClassDeployer(confContext, configurator); // classDeployer.deployClass(Service1.class); SimpleHTTPServer simpleHttpServer = new SimpleHTTPServer(confContext, 5555); Modified: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java (original) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1.java Wed Aug 15 04:55:50 2007 @@ -16,6 +16,7 @@ package org.apache.axis2.rmi.server.services; import java.util.Map; +import java.util.Date; public class Service1 implements Service1Interface { @@ -37,6 +38,10 @@ } public Map method5(Map param1) { + return param1; + } + + public Date method6(Date param1){ return param1; } Modified: webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1Interface.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1Interface.java?view=diff&rev=566114&r1=566113&r2=566114 ============================================================================== --- webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1Interface.java (original) +++ webservices/axis2/trunk/java/modules/rmi/test/org/apache/axis2/rmi/server/services/Service1Interface.java Wed Aug 15 04:55:50 2007 @@ -1,6 +1,7 @@ package org.apache.axis2.rmi.server.services; import java.util.Map; +import java.util.Date; public interface Service1Interface { @@ -13,4 +14,6 @@ public int[] mehtod4(int[] param1); public Map method5(Map param1); + + public Date method6(Date param1); } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org