ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r180256 - in /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl: codegen/emitter/MultiLanguageClientEmitter.java databinding/TypeMappingAdapter.java template/java/TestClassTemplate.xsl
Date Mon, 06 Jun 2005 08:08:34 GMT
Author: chathura
Date: Mon Jun  6 01:08:32 2005
New Revision: 180256

URL: http://svn.apache.org/viewcvs?rev=180256&view=rev
Log:
Changed the Stub to take in OmElement type arguments. Stripped away the dataBinding part that
was in place for the Simple types

Modified:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/databinding/TypeMappingAdapter.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/TestClassTemplate.xsl

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/MultiLanguageClientEmitter.java?rev=180256&r1=180255&r2=180256&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
Mon Jun  6 01:08:32 2005
@@ -443,7 +443,6 @@
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
         doc.appendChild(rootElement);
-
         return doc;
 
     }
@@ -491,7 +490,7 @@
         addAttribute(doc, "address", "http://localhost:"+Constants.TEST_PORT+"/services/"+boundInterface.getName().getLocalPart()+TEST_SERVICE_CLASS_NAME_SUFFIX,
rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
-        doc.appendChild(rootElement);
+        doc.appendChild(rootElement);        
         return doc;
 
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/databinding/TypeMappingAdapter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/databinding/TypeMappingAdapter.java?rev=180256&r1=180255&r2=180256&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/databinding/TypeMappingAdapter.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/databinding/TypeMappingAdapter.java
Mon Jun  6 01:08:32 2005
@@ -5,6 +5,7 @@
 import javax.xml.namespace.QName;
 
 import org.apache.axis.om.OMElement;
+import org.apache.axis.om.OMNode;
 
 /*
 * Copyright 2004,2005 The Apache Software Foundation.

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/TestClassTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/TestClassTemplate.xsl?rev=180256&r1=180255&r2=180256&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/TestClassTemplate.xsl
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/template/java/TestClassTemplate.xsl
Mon Jun  6 01:08:32 2005
@@ -14,12 +14,18 @@
     
 	import java.io.InputStream;
 	import java.net.ServerSocket;
+
+	import javax.xml.namespace.QName;
 	
 	import org.apache.axis.context.ConfigurationContext;
 	import org.apache.axis.deployment.DeploymentEngine;
 	import org.apache.axis.description.ServiceDescription;
 	import org.apache.axis.engine.AxisConfiguration;
 	import org.apache.axis.wsdl.codegen.Constants;
+	import org.apache.axis.om.OMAbstractFactory;
+	import org.apache.axis.om.OMElement;
+	import org.apache.axis.om.OMFactory;
+	import org.apache.axis.om.impl.llom.OMTextImpl;
 	import org.apache.axis.transport.http.SimpleHTTPServer;
 
 
@@ -146,21 +152,13 @@
 
      public static Object createTestInput(Class paramClass){
 
-       if (paramClass.equals(String.class)){
-           return new String("Test");
-       }else if (paramClass.equals(Integer.class)){
-            return new Integer(1);
-       }else if (paramClass.equals(Float.class)){
-           return new Float(2);
-       }else if (paramClass.equals(Double.class)){
-           return new Double(3);
-       //todo this seems to be a long list... needs to complete this
-       //}else if (paramClass.equals(OMElement.class)){
-       //  return null;
-       }else{
-         return new Object();
-       }
-
+      OMFactory factory = OMAbstractFactory.getOMFactory();
+		OMElement element = factory.createOMElement(new QName("http://soapinterop.org/", "<xsl:value-of
select="generate-id()"/>"), null);
+		OMElement element1 = factory.createOMElement(new QName("http://soapinterop.org/","<xsl:value-of
select="generate-id()"/>"), element);
+		element.addChild(element1);
+    	OMTextImpl text = new OMTextImpl("<xsl:value-of select="generate-id()"/>");
+    	element1.addChild(text);
+    	return element;
     }
     }
     </xsl:template>



Mime
View raw message