axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r169820 - in /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen: XSLTConstants.java emitter/JavaEmitter.java
Date Thu, 12 May 2005 13:39:50 GMT
Author: chathura
Date: Thu May 12 06:39:50 2005
New Revision: 169820

URL: http://svn.apache.org/viewcvs?rev=169820&view=rev
Log:
CallBackHandler basic utility methods added to the Emitter.

Modified:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/XSLTConstants.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/JavaEmitter.java

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/XSLTConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/XSLTConstants.java?rev=169820&r1=169819&r2=169820&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/XSLTConstants.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/XSLTConstants.java
Thu May 12 06:39:50 2005
@@ -52,4 +52,13 @@
         public static final String JAVA_TEMPLATE = "/org/apache/axis/wsdl/template/java/BeanTemplate.xsl";
         public static final String CSHARP_TEMPLATE = "/org/apache/axis/wsdl/template/csharp/BeanTemplate.xsl";
     }
+    
+    /**
+     * 
+     * Interface CallbackHanlder Template
+     */
+    public interface XSLTCallbackHandlerTemplates{
+    	public static final String JAVA_TEMPLATE = "/org/apache/axis/wsdl/template/java/CallbackHandlerTemplate.xsl";
+    	public static final String CSHARP_TEMPLATE = "/org/apache/axis/wsdl/template/csharp/CallbackHandlerTemplate.xsl";
+    }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/JavaEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/JavaEmitter.java?rev=169820&r1=169819&r2=169820&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/JavaEmitter.java
(original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/codegen/emitter/JavaEmitter.java
Thu May 12 06:39:50 2005
@@ -1,5 +1,6 @@
 package org.apache.axis.wsdl.codegen.emitter;
 
+import java.io.IOException;
 import java.util.Collection;
 import java.util.Iterator;
 
@@ -61,6 +62,30 @@
         super.emitStub();
     }
 
+    
+    protected XmlDocument createDOMDocumentForCallbackStub(WSDLBinding binding){
+    	WSDLInterface boundInterface = binding.getBoundInterface();
+    	XmlDocument doc = new XmlDocument();
+    	Element rootElement = doc.createElement("class");
+    	
+    	Attr packageAttrebute = doc.createAttribute("package");
+    	packageAttrebute.setValue("something"); //todo set this
+        rootElement.setAttributeNode(packageAttrebute);
+        
+        Attr nameAttribute = doc.createAttribute("name");
+        nameAttribute.setValue(boundInterface.getName().getLocalPart()+ "CallbackHandler");
+        rootElement.setAttributeNode(nameAttribute);
+        
+        Attr nameSpaceAttribute = doc.createAttribute("namespace");
+        nameSpaceAttribute.setValue(boundInterface.getName().getNamespaceURI());
+        rootElement.setAttributeNode(nameSpaceAttribute);
+        
+        this.loadOperations(boundInterface, doc, rootElement);
+
+    	doc.appendChild(rootElement);
+    	return doc;
+    }
+    
     /**
      * @see org.apache.axis.wsdl.codegen.emitter.MultiLanguageClientEmitter#createDOMDocuementForInterface(org.apache.wsdl.WSDLBinding)
      * @param binding
@@ -83,6 +108,12 @@
         loadOperations(boundInterface, doc, rootElement);
 
         doc.appendChild(rootElement);
+       try {
+			doc.write(System.out);
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
         return doc;
 
     }
@@ -149,6 +180,14 @@
 
         loadOperations(boundInterface, doc, rootElement);
         doc.appendChild(rootElement);
+        
+        try {
+			doc.write(System.out);
+		} catch (IOException e) {
+			// TODO Auto-generated catch block
+			e.printStackTrace();
+		}
+        
         return doc;
 
     }



Mime
View raw message