You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2005/07/11 17:49:55 UTC

svn commit: r210150 [24/35] - in /webservices/axis/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/apache/axis2/handlers/addressing/ mod...

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ServiceXMLWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ServiceXMLWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ServiceXMLWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ServiceXMLWriter.java Mon Jul 11 08:49:30 2005
@@ -23,14 +23,15 @@
 *
 *
 */
-public class ServiceXMLWriter extends ClassWriter{
+
+public class ServiceXMLWriter extends ClassWriter {
 
 
     public ServiceXMLWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public ServiceXMLWriter(File outputFileLocation,int language) {
+    public ServiceXMLWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
@@ -38,13 +39,13 @@
     /**
      * @see org.apache.axis2.wsdl.codegen.writer.ClassWriter#loadTemplate()
      */
-    public void loadTemplate(){
+    public void loadTemplate() {
         Class clazz = this.getClass();
         this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTServiceXMLTemplates.GENERAL_SERVICE_TEMPLATE);
     }
 
     public void createOutFile(String packageName, String fileName) throws Exception {
-        File outputFile = FileWriter.createClassFile(outputFileLocation,packageName,"service",".xml");
+        File outputFile = FileWriter.createClassFile(outputFileLocation, packageName, "service", ".xml");
         this.stream = new FileOutputStream(outputFile);
     }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/SkeletonWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/SkeletonWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/SkeletonWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/SkeletonWriter.java Mon Jul 11 08:49:30 2005
@@ -21,14 +21,15 @@
  *
  * 
  */
-public class SkeletonWriter extends ClassWriter{
+
+public class SkeletonWriter extends ClassWriter {
 
 
     public SkeletonWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public SkeletonWriter(File outputFileLocation,int language) {
+    public SkeletonWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
@@ -36,9 +37,9 @@
     /**
      * @see org.apache.axis2.wsdl.codegen.writer.ClassWriter#loadTemplate()
      */
-     public void loadTemplate(){
+    public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTSkeletonTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestClassWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestClassWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestClassWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestClassWriter.java Mon Jul 11 08:49:30 2005
@@ -21,20 +21,21 @@
  *
  * 
  */
-public class TestClassWriter extends ClassWriter{
+
+public class TestClassWriter extends ClassWriter {
 
     public TestClassWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public TestClassWriter(File outputFileLocation,int language) {
+    public TestClassWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
 
     public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTTestClassTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestServiceXMLWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestServiceXMLWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestServiceXMLWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestServiceXMLWriter.java Mon Jul 11 08:49:30 2005
@@ -23,19 +23,19 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public class TestServiceXMLWriter extends ServiceXMLWriter {
 
-	public TestServiceXMLWriter(String outputFileLocation){
-		super(outputFileLocation);
-	}
-	public TestServiceXMLWriter(File outputFileLocation,int language){
-		super(outputFileLocation, language);
-	}
-	
-	public void createOutFile(String packageName, String fileName) throws Exception {
-        File outputFile = FileWriter.createClassFile(outputFileLocation,packageName,"testservice",".xml");
+    public TestServiceXMLWriter(String outputFileLocation) {
+        super(outputFileLocation);
+    }
+
+    public TestServiceXMLWriter(File outputFileLocation, int language) {
+        super(outputFileLocation, language);
+    }
+
+    public void createOutFile(String packageName, String fileName) throws Exception {
+        File outputFile = FileWriter.createClassFile(outputFileLocation, packageName, "testservice", ".xml");
         this.stream = new FileOutputStream(outputFile);
     }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestSkeletonImplWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestSkeletonImplWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestSkeletonImplWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/TestSkeletonImplWriter.java Mon Jul 11 08:49:30 2005
@@ -22,22 +22,21 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public class TestSkeletonImplWriter extends ClassWriter {
 
-	  public TestSkeletonImplWriter(String outputFileLocation) {
+    public TestSkeletonImplWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public TestSkeletonImplWriter(File outputFileLocation,int language) {
+    public TestSkeletonImplWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
 
     public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTTestSkeletonImplTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/CSharpTypeMapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/CSharpTypeMapper.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/CSharpTypeMapper.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/CSharpTypeMapper.java Mon Jul 11 08:49:30 2005
@@ -18,7 +18,8 @@
  *
  *  the C# type mapper
  */
-public class CSharpTypeMapper extends TypeMappingAdapter{
+
+public class CSharpTypeMapper extends TypeMappingAdapter {
 
     /**
      * Creats a basic Csharp type mapper

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/DefaultTypeMapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/DefaultTypeMapper.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/DefaultTypeMapper.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/DefaultTypeMapper.java Mon Jul 11 08:49:30 2005
@@ -20,28 +20,28 @@
 
 /**
  * Copyright 2004,2005 The Apache Software Foundation.
- *
+ * <p/>
  * 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
- *
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
  * 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.
- *
+ * <p/>
  * Default type mapper. Just a mock!
  */
 public class DefaultTypeMapper extends TypeMappingAdapter {
-	
-	public DefaultTypeMapper(){		
-	}
-	
-	public String getParameterName(QName qname){
-		return "omElement";
-	}
+
+    public DefaultTypeMapper() {
+    }
+
+    public String getParameterName(QName qname) {
+        return "omElement";
+    }
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/JavaTypeMapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/JavaTypeMapper.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/JavaTypeMapper.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/JavaTypeMapper.java Mon Jul 11 08:49:30 2005
@@ -1,8 +1,6 @@
 package org.apache.axis2.wsdl.databinding;
 
 
-
-
 /*
  * Copyright 2004,2005 The Apache Software Foundation.
  *
@@ -40,10 +38,11 @@
  * QName	xsd:QName
 
  */
-public class JavaTypeMapper extends TypeMappingAdapter{
+
+public class JavaTypeMapper extends TypeMappingAdapter {
 
     public JavaTypeMapper() {
-       //add the basic types to the table 
+        //add the basic types to the table
 //       this.map.put(new QName(XSD_SCHEMA_URL,"string"),String.class.getName());
 //       this.map.put(new QName(XSD_SCHEMA_URL,"boolean"),Boolean.class.getName());
 //       this.map.put(new QName(XSD_SCHEMA_URL,"double"),Double.class.getName());

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMapper.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMapper.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMapper.java Mon Jul 11 08:49:30 2005
@@ -35,9 +35,11 @@
 *
 *  Interface for the type mapping
 */
+
 public interface TypeMapper {
     /**
      * Get the type mapping class
+     *
      * @param qname name of the XML element to be mapped
      * @return a class that represents the particualr type
      */
@@ -45,6 +47,7 @@
 
     /**
      * Get the parameter name
+     *
      * @param qname name of the XML element to get a parameter
      * @return a unique parameter name
      */
@@ -52,9 +55,10 @@
 
     /**
      * Adds a type mapping to the type mapper
+     *
      * @param qname
      * @param value
      */
-    public void addTypeMapping(QName qname,Object value);
+    public void addTypeMapping(QName qname, Object value);
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMappingAdapter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMappingAdapter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMappingAdapter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/databinding/TypeMappingAdapter.java Mon Jul 11 08:49:30 2005
@@ -20,25 +20,25 @@
 *
 * Default abstract implementation of the type mapper
 */
-public abstract class  TypeMappingAdapter implements TypeMapper{
+
+public abstract class TypeMappingAdapter implements TypeMapper {
     protected static final String XSD_SCHEMA_URL = "http://www.w3.org/2001/XMLSchema";
     //hashmap that contains the type mappings
-    protected  HashMap map = new HashMap();
+    protected HashMap map = new HashMap();
     //counter variable to generate unique parameter ID's
-    protected int counter=0;
+    protected int counter = 0;
     //Upper limit for the paramete count
     protected static final int UPPER_PARAM_LIMIT = 1000;
 
     /**
-     *
      * @see TypeMapper#getTypeMapping(javax.xml.namespace.QName)
      */
     public String getTypeMapping(QName qname) {
-        if ((qname!=null)){
+        if ((qname != null)) {
             Object o = map.get(qname);
-            if (o!=null){
-               return (String)o;
-            }else{
+            if (o != null) {
+                return (String) o;
+            } else {
                 return "org.apache.axis2.om.OMElement";
             }
         }
@@ -50,8 +50,8 @@
      * @see TypeMapper#getParameterName(javax.xml.namespace.QName)
      */
     public String getParameterName(QName qname) {
-        if (counter==UPPER_PARAM_LIMIT){
-            counter=0;
+        if (counter == UPPER_PARAM_LIMIT) {
+            counter = 0;
         }
         return "param" + counter++;
     }
@@ -60,6 +60,6 @@
      * @see TypeMapper#addTypeMapping(javax.xml.namespace.QName, Object)
      */
     public void addTypeMapping(QName qname, Object value) {
-        map.put(qname,value);
+        map.put(qname, value);
     }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/BeanTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/BeanTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/BeanTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/BeanTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,7 +1,8 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/bean">
-    namespace <xsl:value-of select="@package"/>
+    namespace
+        <xsl:value-of select="@package"/>
     {
 
     ///  &lt;summary&gt;
@@ -9,37 +10,58 @@
     ///  This is meant to be used with the IKVM converted Axis libraries
     /// &lt;/summary&gt;
 
-    public class <xsl:value-of select="@name"/> {
+    public class
+        <xsl:value-of select="@name"/> {
 
 
-     <xsl:for-each select="property">
-         <xsl:variable name="propertyType"><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
-         <xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable>
+        <xsl:for-each select="property">
+            <xsl:variable name="propertyType">
+                <xsl:value-of select="@type"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="propertyName">
+                <xsl:value-of select="@name"></xsl:value-of>
+            </xsl:variable>
 
         /// &lt;summary&gt;
-        /// field for <xsl:value-of select="$propertyName"/>
+        /// field for
+            <xsl:value-of select="$propertyName"/>
         ///&lt;/summary&gt;
-         private <xsl:value-of select="$propertyType"/> local<xsl:value-of select="$propertyName"/>;
+         private
+            <xsl:value-of select="$propertyType"/> local
+            <xsl:value-of select="$propertyName"/>;
 
         /// &lt;summary&gt;
         /// Auto generated getter method
         ///&lt;/summary&gt;
-        /// <returns><xsl:value-of select="$propertyType"/></returns>
         ///
-        public  <xsl:value-of select="$propertyType"/><xsl:text> </xsl:text>get<xsl:value-of select="$propertyName"/>(){
-             return local<xsl:value-of select="$propertyName"/>;
+            <returns>
+                <xsl:value-of select="$propertyType"/>
+            </returns>
+        ///
+        public
+            <xsl:value-of select="$propertyType"/>
+            <xsl:text> </xsl:text>get
+            <xsl:value-of select="$propertyName"/>(){
+             return local
+            <xsl:value-of select="$propertyName"/>;
         }
 
         /// &lt;summary&gt;
         /// Auto generated setter method
         ///&lt;/summary&gt;
-        ///<param name="param{$propertyName}"> </param>
         ///
-        public void set<xsl:value-of select="$propertyName"/>(<xsl:value-of select="$propertyType"/> param<xsl:value-of select="$propertyName"/>){
-             this.local<xsl:value-of select="$propertyName"/>=param<xsl:value-of select="$propertyName"/>;
+            <param name="param{$propertyName}"> </param>
+        ///
+        public void set
+            <xsl:value-of select="$propertyName"/>(
+            <xsl:value-of select="$propertyType"/> param
+            <xsl:value-of select="$propertyName"/>){
+             this.local
+            <xsl:value-of select="$propertyName"/>=param
+            <xsl:value-of select="$propertyName"/>;
         }
-     </xsl:for-each>
+        </xsl:for-each>
     }
     }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/CallbackHandlerTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/CallbackHandlerTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/CallbackHandlerTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/CallbackHandlerTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,24 +1,27 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/callback">
-    namespace <xsl:value-of select="@package"/>
+    namespace
+        <xsl:value-of select="@package"/>
     {
     ///&lt;summary&gt;
     /// Auto generated C# Callback class by the Axis code generator
     /// This is meant to be used with the IKVM converted Axis libraries
     /// &lt;/summary&gt;
 
-    public class <xsl:value-of select="@name"/>
+    public class
+        <xsl:value-of select="@name"/>
     {
 
 
-	<xsl:for-each select="method">
+        <xsl:for-each select="method">
 
         /// &lt;summary&gt;
         /// Auto generated Axis2 call back method
         ///&lt;/summary&gt;
         ///
-        public void receiveResult<xsl:value-of select="@name"/>(org.apache.axis2.clientapi.AsyncResult result)
+        public void receiveResult
+            <xsl:value-of select="@name"/>(org.apache.axis2.clientapi.AsyncResult result)
         {
 			//Fill here with the code to handle the response
 			
@@ -28,15 +31,16 @@
          /// Auto generated Axis2 Error handler
          /// &lt;/summary&gt;
          ///
-        public void receiveError<xsl:value-of select="@name"/>(java.lang.Exception e)
+        public void receiveError
+            <xsl:value-of select="@name"/>(java.lang.Exception e)
         {
 			//Fill here with the code to handle the exception
 
         }
-     </xsl:for-each>
+        </xsl:for-each>
 
      
     }
   }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceImplementationTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceImplementationTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,106 +1,169 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/class">
-    <xsl:variable name="interfaceName"><xsl:value-of select="@interfaceName"/></xsl:variable>
-    <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
-    <xsl:variable name="callbackname"><xsl:value-of select="@callbackname"/></xsl:variable>
-    <xsl:variable name="isSync"><xsl:value-of select="@isSync"/></xsl:variable>
-    <xsl:variable name="isAsync"><xsl:value-of select="@isAsync"/></xsl:variable>
-    namespace <xsl:value-of select="$package"/>{
+        <xsl:variable name="interfaceName">
+            <xsl:value-of select="@interfaceName"/>
+        </xsl:variable>
+        <xsl:variable name="package">
+            <xsl:value-of select="@package"/>
+        </xsl:variable>
+        <xsl:variable name="callbackname">
+            <xsl:value-of select="@callbackname"/>
+        </xsl:variable>
+        <xsl:variable name="isSync">
+            <xsl:value-of select="@isSync"/>
+        </xsl:variable>
+        <xsl:variable name="isAsync">
+            <xsl:value-of select="@isAsync"/>
+        </xsl:variable>
+    namespace
+        <xsl:value-of select="$package"/>{
 
     /// &lt;summary&gt;
     /// Auto generated C# implementation by the Axis code generator
     /// This is meant to be used with the IKVM converted Axis libraries
     ///&lt;/summary&gt;
 
-    public class <xsl:value-of select="@name"/> :org.apache.axis2.clientapi.Stub,<xsl:value-of select="$interfaceName"/>{
+    public class
+        <xsl:value-of select="@name"/> :org.apache.axis2.clientapi.Stub,
+        <xsl:value-of select="$interfaceName"/>{
 
         private static org.apache.axis2.description.AxisGlobal  _axisGlobal = null;
         private static org.apache.axis2.engine.AxisSystemImpl   _axisSystem = null;
         private static org.apache.axis2.context.SystemContext   _systemContext = null;
         private static org.apache.axis2.description.AxisService   _service = null;
-        private static org.apache.axis2.description.AxisOperation[] _operations = new org.apache.axis2.description.AxisOperation[<xsl:value-of select="count(method)"/>];
+        private static org.apache.axis2.description.AxisOperation[] _operations = new org.apache.axis2.description.AxisOperation[
+        <xsl:value-of select="count(method)"/>];
 
        ///&lt;summary&gt;
        /// static constructor
        ///&lt; /summary &gt;
-       static <xsl:value-of select="@name"/>(){
+       static
+        <xsl:value-of select="@name"/>(){
          _axisGlobal = new org.apache.axis2.description.AxisGlobal();
          _axisSystem = new org.apache.axis2.engine.AxisSystemImpl(_axisGlobal);
 		 _systemContext = new org.apache.axis2.context.SystemContext(_axisSystem);
 		 _service = new org.apache.axis2.description.AxisService();
-         _service.setName(new javax.xml.namespace.QName("<xsl:value-of select="@namespace"/>", "<xsl:value-of select="@servicename"/>"));
+         _service.setName(new javax.xml.namespace.QName("
+        <xsl:value-of select="@namespace"/>", "
+        <xsl:value-of select="@servicename"/>"));
          org.apache.axis2.description.AxisOperation __operation;
 
-      <xsl:for-each select="method">
+        <xsl:for-each select="method">
           __operation = new org.apache.axis2.description.AxisOperation();
-          __operation.setName(new javax.xml.namespace.QName("<xsl:value-of select="@namespace"/>", "<xsl:value-of select="@name"/>"));
+          __operation.setName(new javax.xml.namespace.QName("
+            <xsl:value-of select="@namespace"/>", "
+            <xsl:value-of select="@name"/>"));
           // more things are supposed to come here
-          _operations[<xsl:value-of select="position()-1"/>]=__operation;
-     </xsl:for-each>
+          _operations[
+            <xsl:value-of select="position()-1"/>]=__operation;
+        </xsl:for-each>
        }
-     <xsl:for-each select="method">
-         <xsl:variable name="outputtype"><xsl:value-of select="output/param/@type"></xsl:value-of></xsl:variable>
-         <xsl:variable name="inputtype"><xsl:value-of select="input/param/@type"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:variable name="inputparam"><xsl:value-of select="input/param/@name"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
+        <xsl:for-each select="method">
+            <xsl:variable name="outputtype">
+                <xsl:value-of select="output/param/@type"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="inputtype">
+                <xsl:value-of select="input/param/@type"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:variable name="inputparam">
+                <xsl:value-of select="input/param/@name"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
 
-         <xsl:if test="$isSync='1'">
+            <xsl:if test="$isSync='1'">
         /// &lt;summary&gt;
         /// Auto generated method signature
         ///&lt;/summary&gt;
-        ///<xsl:if test="$inputtype!=''">&lt;param name="<xsl:value-of select="$inputparam"/>"/&gt;</xsl:if>
         ///
-        public  <xsl:if test="$outputtype=''">void</xsl:if><xsl:if test="$outputtype!=''"><xsl:value-of select="$outputtype"/></xsl:if><xsl:text> </xsl:text><xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>)
+                <xsl:if test="$inputtype!=''">&lt;param name="
+                    <xsl:value-of select="$inputparam"/>"/&gt;
+                </xsl:if>
+        ///
+        public
+                <xsl:if test="$outputtype=''">void</xsl:if>
+                <xsl:if test="$outputtype!=''">
+                    <xsl:value-of select="$outputtype"/>
+                </xsl:if>
+                <xsl:text> </xsl:text>
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>)
         {
 
-		    org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_systemContext.getServiceContext("<xsl:value-of select="generate-id()"/>"));<!-- this needs to change -->
+		    org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_systemContext.getServiceContext("
+                <xsl:value-of select="generate-id()"/>"));<!-- this needs to change -->
  		    org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
-             <xsl:if test="$outputtype=''">
-             _call.invokeBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext);
+                <xsl:if test="$outputtype=''">
+             _call.invokeBlocking(_operations[
+                    <xsl:value-of select="position()-1"/>], _messageContext);
              return null;
-             </xsl:if>
-             <xsl:if test="$outputtype!=''">
-             Object obj = _call.invokeBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext);
-             return (<xsl:value-of select="$outputtype"/>)obj;
-            </xsl:if>
-            <!-- this needs to be changed -->
+                </xsl:if>
+                <xsl:if test="$outputtype!=''">
+             Object obj = _call.invokeBlocking(_operations[
+                    <xsl:value-of select="position()-1"/>], _messageContext);
+             return (
+                    <xsl:value-of select="$outputtype"/>)obj;
+                </xsl:if>
+                <!-- this needs to be changed -->
         }
-        </xsl:if>
-        <xsl:if test="$isAsync='1'">
+            </xsl:if>
+            <xsl:if test="$isAsync='1'">
         ///&lt;summary&gt;
         ///Auto generated method signature
         ///&lt;/summary&gt;
-        ///<xsl:if test="$inputtype!=''">&lt;param name="<xsl:value-of select="$inputparam"/>"/&gt;</xsl:if>
         ///
-        public void start<xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>)
+                <xsl:if test="$inputtype!=''">&lt;param name="
+                    <xsl:value-of select="$inputparam"/>"/&gt;
+                </xsl:if>
+        ///
+        public void start
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>)
         {
                 // we know its call because we have the mep at the time of the stub generation.
-		        org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_systemContext.getServiceContext("<xsl:value-of select="generate-id()"/>"));<!-- this needs to change -->
+		        org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_systemContext.getServiceContext("
+                <xsl:value-of select="generate-id()"/>"));<!-- this needs to change -->
  		        org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
-		        _call.invokeNonBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext, new CallBack<xsl:value-of select="generate-id()"/>());
-            <!-- this needs to be changed -->
+		        _call.invokeNonBlocking(_operations[
+                <xsl:value-of select="position()-1"/>], _messageContext, new CallBack
+                <xsl:value-of select="generate-id()"/>());
+                <!-- this needs to be changed -->
         }
 
         ///&lt;summary&gt;
         ///  C# does not support anoynmous inner classes
         ///&lt;/summary&gt;
-        private class CallBack<xsl:value-of select="generate-id()"/>:org.apache.axis2.clientapi.CallBack
+        private class CallBack
+                <xsl:value-of select="generate-id()"/>:org.apache.axis2.clientapi.CallBack
         {
           public void onComplete(org.apache.axis2.clientapi.AsyncResult result)
            {
-                    new <xsl:value-of select="$package"/>.<xsl:value-of select="$callbackname"/>().receiveResult<xsl:value-of select="@name"/>(result);
+                    new
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$callbackname"/>().receiveResult
+                <xsl:value-of select="@name"/>(result);
            }
            public void reportError(java.lang.Exception e)
            {
-                     new <xsl:value-of select="$package"/>.<xsl:value-of select="$callbackname"/>().receiveError<xsl:value-of select="@name"/>(e);
+                     new
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$callbackname"/>().receiveError
+                <xsl:value-of select="@name"/>(e);
            }
 
 
 
         }
-      </xsl:if>
-     </xsl:for-each>
+            </xsl:if>
+        </xsl:for-each>
     }
     }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/csharp/InterfaceTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,9 +1,14 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/interface">
-    <xsl:variable name="isSync"><xsl:value-of select="@isSync"/></xsl:variable>
-    <xsl:variable name="isAsync"><xsl:value-of select="@isAsync"/></xsl:variable>    
-    namespace <xsl:value-of select="@package"/>
+        <xsl:variable name="isSync">
+            <xsl:value-of select="@isSync"/>
+        </xsl:variable>
+        <xsl:variable name="isAsync">
+            <xsl:value-of select="@isAsync"/>
+        </xsl:variable>
+    namespace
+        <xsl:value-of select="@package"/>
     {
 
     /// &lt;summary&gt;
@@ -11,31 +16,58 @@
     /// This is meant to be used with the IKVM converted Axis libraries
     /// &lt;/summary&gt;
 
-    public interface <xsl:value-of select="@name"></xsl:value-of>
+    public interface
+        <xsl:value-of select="@name"></xsl:value-of>
     {
 
-     <xsl:for-each select="method">
-         <xsl:variable name="outputtype"><xsl:value-of select="output/param/@type"></xsl:value-of></xsl:variable>
-         <xsl:variable name="inputtype"><xsl:value-of select="input/param/@type"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:variable name="inputparam"><xsl:value-of select="input/param/@name"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:if test="$isSync='1'">
+        <xsl:for-each select="method">
+            <xsl:variable name="outputtype">
+                <xsl:value-of select="output/param/@type"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="inputtype">
+                <xsl:value-of select="input/param/@type"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:variable name="inputparam">
+                <xsl:value-of select="input/param/@name"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:if test="$isSync='1'">
         /// &lt;summary&gt;
         ///  Auto generated interface method
         /// &lt;/summary&gt;
-         public  <xsl:if test="$outputtype=''">void</xsl:if><xsl:if test="$outputtype!=''"><xsl:value-of select="$outputtype"/></xsl:if><xsl:text> </xsl:text><xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>);
-         </xsl:if>
+         public
+                <xsl:if test="$outputtype=''">void</xsl:if>
+                <xsl:if test="$outputtype!=''">
+                    <xsl:value-of select="$outputtype"/>
+                </xsl:if>
+                <xsl:text> </xsl:text>
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>);
+            </xsl:if>
 
-         <xsl:if test="$isAsync='1'">
+            <xsl:if test="$isAsync='1'">
         ///&lt;summary&gt;
         ///Auto generated interface method
         ///&lt;/summary&gt;
-        ///<xsl:if test="$inputtype!=''">&lt;param  name="<xsl:value-of select="$inputparam"/>"/&gt;</xsl:if>
         ///
-        public void start<xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>) ;
-        </xsl:if>
+                <xsl:if test="$inputtype!=''">&lt;param  name="
+                    <xsl:value-of select="$inputparam"/>"/&gt;
+                </xsl:if>
+        ///
+        public void start
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>) ;
+            </xsl:if>
 
-     </xsl:for-each>
+        </xsl:for-each>
     }
    }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,30 +1,56 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
     <xsl:template match="/interface">
-    <xsl:variable name="receiver"><xsl:value-of select="@messagereceiver"/></xsl:variable>
-    <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
+        <xsl:variable name="receiver">
+            <xsl:value-of select="@messagereceiver"/>
+        </xsl:variable>
+        <xsl:variable name="package">
+            <xsl:value-of select="@package"/>
+        </xsl:variable>
 
-    <xsl:comment>Auto generated Axis Service XML</xsl:comment>
-    <service><xsl:attribute name="name"><xsl:value-of select="@servicename"/></xsl:attribute>
-    <parameter name="ServiceClass" locked="xsd:false">
-         <xsl:choose>
-            <xsl:when test="$package=''"><xsl:value-of select="@name"/></xsl:when>
-            <xsl:otherwise> <xsl:value-of select="$package"/>.<xsl:value-of select="@name"/></xsl:otherwise>
-        </xsl:choose>
-       </parameter>
-    <xsl:for-each select="method">
-         <xsl:comment>Mounting the method <xsl:value-of select="@name"/> </xsl:comment>
-         <operation><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
-             <xsl:if test="$receiver!=''">
-             <messageReceiver>
-              <xsl:choose>
-                    <xsl:when test="$package=''"><xsl:attribute name="class"><xsl:value-of select="$receiver"/></xsl:attribute></xsl:when>
-                    <xsl:otherwise><xsl:attribute name="class"><xsl:value-of select="$package"/>.<xsl:value-of select="$receiver"/></xsl:attribute></xsl:otherwise>
-              </xsl:choose>
-              </messageReceiver>
-            </xsl:if>
-         </operation>
-     </xsl:for-each>
-    </service>
+        <xsl:comment>Auto generated Axis Service XML</xsl:comment>
+        <service>
+            <xsl:attribute name="name">
+                <xsl:value-of select="@servicename"/>
+            </xsl:attribute>
+            <parameter name="ServiceClass" locked="xsd:false">
+                <xsl:choose>
+                    <xsl:when test="$package=''">
+                        <xsl:value-of select="@name"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="$package"/>.
+                        <xsl:value-of select="@name"/>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </parameter>
+            <xsl:for-each select="method">
+                <xsl:comment>Mounting the method
+                    <xsl:value-of select="@name"/>
+                </xsl:comment>
+                <operation>
+                    <xsl:attribute name="name">
+                        <xsl:value-of select="@name"/>
+                    </xsl:attribute>
+                    <xsl:if test="$receiver!=''">
+                        <messageReceiver>
+                            <xsl:choose>
+                                <xsl:when test="$package=''">
+                                    <xsl:attribute name="class">
+                                        <xsl:value-of select="$receiver"/>
+                                    </xsl:attribute>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:attribute name="class">
+                                        <xsl:value-of select="$package"/>.
+                                        <xsl:value-of select="$receiver"/>
+                                    </xsl:attribute>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </messageReceiver>
+                    </xsl:if>
+                </operation>
+            </xsl:for-each>
+        </service>
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/BeanTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/BeanTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/BeanTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/BeanTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,39 +1,59 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/bean">
-    package <xsl:value-of select="@package"/>;
+    package
+        <xsl:value-of select="@package"/>;
 
     /**
      *  Auto generated bean class by the Axis code generator
      */
 
-    public class <xsl:value-of select="@name"/> {
+    public class
+        <xsl:value-of select="@name"/> {
 
 
-     <xsl:for-each select="property">
-         <xsl:variable name="propertyType"><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
-         <xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable>
+        <xsl:for-each select="property">
+            <xsl:variable name="propertyType">
+                <xsl:value-of select="@type"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="propertyName">
+                <xsl:value-of select="@name"></xsl:value-of>
+            </xsl:variable>
         /**
-         * field for <xsl:value-of select="$propertyName"/>
+         * field for
+            <xsl:value-of select="$propertyName"/>
          */
-         private <xsl:value-of select="$propertyType"/> local<xsl:value-of select="$propertyName"/>;
+         private
+            <xsl:value-of select="$propertyType"/> local
+            <xsl:value-of select="$propertyName"/>;
 
         /**
          * Auto generated getter method
-         * @return <xsl:value-of select="$propertyType"/>
+         * @return
+            <xsl:value-of select="$propertyType"/>
          */
-        public  <xsl:value-of select="$propertyType"/><xsl:text> </xsl:text>get<xsl:value-of select="$propertyName"/>(){
-             return local<xsl:value-of select="$propertyName"/>;
+        public
+            <xsl:value-of select="$propertyType"/>
+            <xsl:text> </xsl:text>get
+            <xsl:value-of select="$propertyName"/>(){
+             return local
+            <xsl:value-of select="$propertyName"/>;
         }
 
         /**
          * Auto generated setter method
-         * @param param<xsl:value-of select="$propertyName"/>
+         * @param param
+            <xsl:value-of select="$propertyName"/>
          */
-        public void set<xsl:value-of select="$propertyName"/>(<xsl:value-of select="$propertyType"/> param<xsl:value-of select="$propertyName"/>){
-             this.local<xsl:value-of select="$propertyName"/>=param<xsl:value-of select="$propertyName"/>;
+        public void set
+            <xsl:value-of select="$propertyName"/>(
+            <xsl:value-of select="$propertyType"/> param
+            <xsl:value-of select="$propertyName"/>){
+             this.local
+            <xsl:value-of select="$propertyName"/>=param
+            <xsl:value-of select="$propertyName"/>;
         }
-     </xsl:for-each>
+        </xsl:for-each>
     }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,13 +1,15 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/callback">
-    package <xsl:value-of select="@package"/>;
+    package
+        <xsl:value-of select="@package"/>;
 
     /**
      *  Auto generated Callback class by the Axis code generator
      */
 
-    public class <xsl:value-of select="@name"/>{
+    public class
+        <xsl:value-of select="@name"/>{
     
     
     
@@ -20,17 +22,20 @@
 	* @param clientData Object mechanism by which the user can pass in user data
 	* that will be avilable at the time this callback is called.
 	*/
-	public <xsl:value-of select="@name"/>(Object clientData){
+	public
+        <xsl:value-of select="@name"/>(Object clientData){
 		this.clientData = clientData;
 	}
 
 
-	<xsl:for-each select="method">
+        <xsl:for-each select="method">
          /**
-         * auto generated Axis2 call back method for <xsl:value-of select="@name"/> method
+         * auto generated Axis2 call back method for
+            <xsl:value-of select="@name"/> method
          *
          */
-        public void receiveResult<xsl:value-of select="@name"/>(org.apache.axis2.clientapi.AsyncResult result) {
+        public void receiveResult
+            <xsl:value-of select="@name"/>(org.apache.axis2.clientapi.AsyncResult result) {
 			//Fill here with the code to handle the response
 			
         }
@@ -39,13 +44,14 @@
          * auto generated Axis2 Error handler
          *
          */
-        public void receiveError<xsl:value-of select="@name"/>(java.lang.Exception e) {
+        public void receiveError
+            <xsl:value-of select="@name"/>(java.lang.Exception e) {
 			//Fill here with the code to handle the exception
 
         }
-     </xsl:for-each>
+        </xsl:for-each>
 
      
     }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,42 +1,64 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/class">
-    <xsl:variable name="interfaceName"><xsl:value-of select="@interfaceName"/></xsl:variable>
-    <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
-    <xsl:variable name="callbackname"><xsl:value-of select="@callbackname"/></xsl:variable>
-    <xsl:variable name="isSync"><xsl:value-of select="@isSync"/></xsl:variable>
-    <xsl:variable name="isAsync"><xsl:value-of select="@isAsync"/></xsl:variable>
-    <xsl:variable name="dbpackage"><xsl:value-of select="@dbsupportpackage"/></xsl:variable>
-    package <xsl:value-of select="$package"/>;
+        <xsl:variable name="interfaceName">
+            <xsl:value-of select="@interfaceName"/>
+        </xsl:variable>
+        <xsl:variable name="package">
+            <xsl:value-of select="@package"/>
+        </xsl:variable>
+        <xsl:variable name="callbackname">
+            <xsl:value-of select="@callbackname"/>
+        </xsl:variable>
+        <xsl:variable name="isSync">
+            <xsl:value-of select="@isSync"/>
+        </xsl:variable>
+        <xsl:variable name="isAsync">
+            <xsl:value-of select="@isAsync"/>
+        </xsl:variable>
+        <xsl:variable name="dbpackage">
+            <xsl:value-of select="@dbsupportpackage"/>
+        </xsl:variable>
+    package
+        <xsl:value-of select="$package"/>;
 
     /*
      *  Auto generated java implementation by the Axis code generator
     */
 
-    public class <xsl:value-of select="@name"/> extends org.apache.axis2.clientapi.Stub implements <xsl:value-of select="$interfaceName"/>{
+    public class
+        <xsl:value-of select="@name"/> extends org.apache.axis2.clientapi.Stub implements
+        <xsl:value-of select="$interfaceName"/>{
         public static final String AXIS2_HOME = ".";
         protected static org.apache.axis2.description.OperationDescription[] _operations;
 
         static{
 
            //creating the Service
-           _service = new org.apache.axis2.description.ServiceDescription(new javax.xml.namespace.QName("<xsl:value-of select="@namespace"/>","<xsl:value-of select="@servicename"/>"));
+           _service = new org.apache.axis2.description.ServiceDescription(new javax.xml.namespace.QName("
+        <xsl:value-of select="@namespace"/>","
+        <xsl:value-of select="@servicename"/>"));
 
            //creating the operations
            org.apache.axis2.description.OperationDescription __operation;
-           _operations = new org.apache.axis2.description.OperationDescription[<xsl:value-of select="count(method)"/>];
-      <xsl:for-each select="method">
+           _operations = new org.apache.axis2.description.OperationDescription[
+        <xsl:value-of select="count(method)"/>];
+        <xsl:for-each select="method">
           __operation = new org.apache.axis2.description.OperationDescription();
-          __operation.setName(new javax.xml.namespace.QName("<xsl:value-of select="@namespace"/>", "<xsl:value-of select="@name"/>"));
-          _operations[<xsl:value-of select="position()-1"/>]=__operation;
+          __operation.setName(new javax.xml.namespace.QName("
+            <xsl:value-of select="@namespace"/>", "
+            <xsl:value-of select="@name"/>"));
+          _operations[
+            <xsl:value-of select="position()-1"/>]=__operation;
           _service.addOperation(__operation);
-     </xsl:for-each>
+        </xsl:for-each>
        }
 
        /**
         * Constructor
         */
-        public <xsl:value-of select="@name"/>(String axis2Home,String targetEndpoint) throws java.lang.Exception {
+        public
+        <xsl:value-of select="@name"/>(String axis2Home,String targetEndpoint) throws java.lang.Exception {
 
 			this.toEPR = new org.apache.axis2.addressing.EndpointReference(org.apache.axis2.addressing.AddressingConstants.WSA_TO, targetEndpoint);
 		    //creating the configuration
@@ -49,172 +71,246 @@
         /**
         * Default Constructor
         */
-        public <xsl:value-of select="@name"/>() throws java.lang.Exception {
-		    this(AXIS2_HOME,"<xsl:value-of select="endpoint"/>" );
+        public
+        <xsl:value-of select="@name"/>() throws java.lang.Exception {
+		    this(AXIS2_HOME,"
+        <xsl:value-of select="endpoint"/>" );
 	    }
 
 
+        <xsl:for-each select="method">
+            <xsl:variable name="outputtype">
+                <xsl:value-of select="output/param/@type"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="style">
+                <xsl:value-of select="@style"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="inputtype">
+                <xsl:value-of select="input/param/@type"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:variable name="inputparam">
+                <xsl:value-of select="input/param/@name"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:variable name="dbsupportclassname">
+                <xsl:value-of select="@dbsupportname"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="soapAction">
+                <xsl:value-of select="@soapaction"></xsl:value-of>
+            </xsl:variable>
+            <xsl:variable name="fullsupporterclassname">
+                <xsl:value-of select="$dbpackage"/>.
+                <xsl:value-of select="$dbsupportclassname"/>
+            </xsl:variable>
 
-     <xsl:for-each select="method">
-         <xsl:variable name="outputtype"><xsl:value-of select="output/param/@type"></xsl:value-of></xsl:variable>
-         <xsl:variable name="style"><xsl:value-of select="@style"></xsl:value-of></xsl:variable>
-         <xsl:variable name="inputtype"><xsl:value-of select="input/param/@type"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:variable name="inputparam"><xsl:value-of select="input/param/@name"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:variable name="dbsupportclassname"><xsl:value-of select="@dbsupportname"></xsl:value-of></xsl:variable>  
-         <xsl:variable name="soapAction"><xsl:value-of select="@soapaction"></xsl:value-of></xsl:variable>
-         <xsl:variable name="fullsupporterclassname"><xsl:value-of select="$dbpackage"/>.<xsl:value-of select="$dbsupportclassname"/></xsl:variable>
+            <!-- When genrating code, the MEP should be taken into account    -->
 
-         <!-- When genrating code, the MEP should be taken into account    -->
-
-         <xsl:if test="$isSync='1'">
+            <xsl:if test="$isSync='1'">
         /**
          * Auto generated method signature
-         * @see <xsl:value-of select="$package"/>.<xsl:value-of select="$interfaceName"/>#<xsl:value-of select="@name"/>
-         *<xsl:if test="$inputtype!=''">@param <xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>
+         * @see
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$interfaceName"/>#
+                <xsl:value-of select="@name"/>
+         *
+                <xsl:if test="$inputtype!=''">@param
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>
          */
-        public  <xsl:if test="$outputtype=''">void</xsl:if><xsl:if test="$outputtype!=''"><xsl:value-of select="$outputtype"/></xsl:if><xsl:text> </xsl:text><xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>) throws java.rmi.RemoteException{
+        public
+                <xsl:if test="$outputtype=''">void</xsl:if>
+                <xsl:if test="$outputtype!=''">
+                    <xsl:value-of select="$outputtype"/>
+                </xsl:if>
+                <xsl:text> </xsl:text>
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>) throws java.rmi.RemoteException{
 
 		    org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_serviceContext);
  		    org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
             _call.setTo(this.toEPR);
-            _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
+            _call.setSoapAction("
+                <xsl:value-of select="$soapAction"/>");
             org.apache.axis2.soap.SOAPEnvelope env = null;
             env = createEnvelope();
-            <xsl:choose>
-              <xsl:when test="$inputtype!=''">
-                  <xsl:choose>
-                      <xsl:when test="$style='rpc'">
+                <xsl:choose>
+                    <xsl:when test="$inputtype!=''">
+                        <xsl:choose>
+                            <xsl:when test="$style='rpc'">
                        // Style is RPC
                              setValueRPC(env,
-                            "<xsl:value-of select="@namespace"/>",
-                            "<xsl:value-of select="@name"/>",
-                            new String[]{"<xsl:value-of select="$inputparam"/>"},
-                            new Object[]{<xsl:value-of select="$inputparam"/>});  //this needs to be fixed
-                      </xsl:when>
+                            "
+                                <xsl:value-of select="@namespace"/>",
+                            "
+                                <xsl:value-of select="@name"/>",
+                            new String[]{"
+                                <xsl:value-of select="$inputparam"/>"},
+                            new Object[]{
+                                <xsl:value-of select="$inputparam"/>});  //this needs to be fixed
+                            </xsl:when>
 
-                      <xsl:when test="$style='doc'">
+                            <xsl:when test="$style='doc'">
                        //Style is Doc
-                       setValueDoc(env,<xsl:value-of select="$fullsupporterclassname"/>.toOM(<xsl:value-of select="$inputparam"/>));
-                      </xsl:when>
-                      <xsl:otherwise>
+                       setValueDoc(env,
+                                <xsl:value-of select="$fullsupporterclassname"/>.toOM(
+                                <xsl:value-of select="$inputparam"/>));
+                            </xsl:when>
+                            <xsl:otherwise>
                        //Unknown style!! No code is generated
                        throw java.lang.UnsupportedOperationException("Unknown Style");
-                      </xsl:otherwise>
-                  </xsl:choose>
-              </xsl:when>
-              <xsl:otherwise>
-                   <xsl:choose>
-                   <xsl:when test="$style='rpc'">
+                            </xsl:otherwise>
+                        </xsl:choose>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:choose>
+                            <xsl:when test="$style='rpc'">
                        //Style is RPC. No input parameters
                           setValueRPC(env,
-                            "<xsl:value-of select="@namespace"/>",
-                            "<xsl:value-of select="@name"/>",
+                            "
+                                <xsl:value-of select="@namespace"/>",
+                            "
+                                <xsl:value-of select="@name"/>",
                             null,
                             null);
-                      </xsl:when>
-                      <!-- The follwing code is specific to XML beans-->
-                      <xsl:when test="$style='doc'">
+                            </xsl:when>
+                            <!-- The follwing code is specific to XML beans-->
+                            <xsl:when test="$style='doc'">
                        //Style is Doc. No input parameters
                        setValueDoc(env,null);
-                      </xsl:when>
-                      <xsl:otherwise>
+                            </xsl:when>
+                            <xsl:otherwise>
                          //Unknown style!! No code is generated
                           throw UnsupportedOperationException("Unknown Style");
-                      </xsl:otherwise>
-                  </xsl:choose>
+                            </xsl:otherwise>
+                        </xsl:choose>
 
-             </xsl:otherwise>
-            </xsl:choose>
+                    </xsl:otherwise>
+                </xsl:choose>
              _messageContext.setEnvelope(env);
-             <xsl:choose>
-                 <xsl:when test="$outputtype=''">
-               _call.invokeBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext);
+                <xsl:choose>
+                    <xsl:when test="$outputtype=''">
+               _call.invokeBlocking(_operations[
+                        <xsl:value-of select="position()-1"/>], _messageContext);
                return;
-              </xsl:when>
-              <xsl:otherwise>
-             org.apache.axis2.context.MessageContext  _returnMessageContext = _call.invokeBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext);
+                    </xsl:when>
+                    <xsl:otherwise>
+             org.apache.axis2.context.MessageContext  _returnMessageContext = _call.invokeBlocking(_operations[
+                        <xsl:value-of select="position()-1"/>], _messageContext);
              org.apache.axis2.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
-             java.lang.Object object = <xsl:value-of select="$fullsupporterclassname"/>.fromOM(getElement(_returnEnv,"<xsl:value-of select="$style"/>"),<xsl:value-of select="$outputtype"/>.class);
-             return (<xsl:value-of select="$outputtype"/>)object;
-                 </xsl:otherwise>
-             </xsl:choose>
+             java.lang.Object object =
+                        <xsl:value-of select="$fullsupporterclassname"/>.fromOM(getElement(_returnEnv,"
+                        <xsl:value-of select="$style"/>"),
+                        <xsl:value-of select="$outputtype"/>.class);
+             return (
+                        <xsl:value-of select="$outputtype"/>)object;
+                    </xsl:otherwise>
+                </xsl:choose>
 
-            <!-- this needs to be changed -->
+                <!-- this needs to be changed -->
         }
-        </xsl:if>
-        <xsl:if test="$isAsync='1'">
+            </xsl:if>
+            <xsl:if test="$isAsync='1'">
          /**
          * Auto generated method signature
-         * @see <xsl:value-of select="$package"/>.<xsl:value-of select="$interfaceName"/>#start<xsl:value-of select="@name"/>
-         *<xsl:if test="$inputtype!=''">@param <xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>
+         * @see
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$interfaceName"/>#start
+                <xsl:value-of select="@name"/>
+         *
+                <xsl:if test="$inputtype!=''">@param
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>
          */
-        public  void start<xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of>,</xsl:if>final <xsl:value-of select="$package"/>.<xsl:value-of select="$callbackname"/> callback) throws java.rmi.RemoteException{
+        public  void start
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>,
+                </xsl:if>final
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$callbackname"/> callback) throws java.rmi.RemoteException{
              org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_serviceContext);<!-- this needs to change -->
  		     org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
              _call.setTo(this.toEPR);
-            _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
+            _call.setSoapAction("
+                <xsl:value-of select="$soapAction"/>");
              org.apache.axis2.soap.SOAPEnvelope env = createEnvelope();
-             <xsl:choose>
-              <xsl:when test="$inputtype!=''">
-              <xsl:choose>
-               <xsl:when test="$style='rpc'">
+                <xsl:choose>
+                    <xsl:when test="$inputtype!=''">
+                        <xsl:choose>
+                            <xsl:when test="$style='rpc'">
                        // Style is RPC
                              setValueRPC(env,
-                            "<xsl:value-of select="@namespace"/>",
-                            "<xsl:value-of select="@name"/>",
-                            new String[]{"<xsl:value-of select="$inputparam"/>"},
-                            new Object[]{<xsl:value-of select="$inputparam"/>});
-                      </xsl:when>
-                      <!-- The follwing code is specific to XML beans-->
-                      <xsl:when test="$style='doc'">
+                            "
+                                <xsl:value-of select="@namespace"/>",
+                            "
+                                <xsl:value-of select="@name"/>",
+                            new String[]{"
+                                <xsl:value-of select="$inputparam"/>"},
+                            new Object[]{
+                                <xsl:value-of select="$inputparam"/>});
+                            </xsl:when>
+                            <!-- The follwing code is specific to XML beans-->
+                            <xsl:when test="$style='doc'">
                          //Style is Doc
-                       setValueDoc(env,<xsl:value-of select="$fullsupporterclassname"/>.toOM(<xsl:value-of select="$inputparam"/>));
-                      </xsl:when>
-                      <xsl:otherwise>
+                       setValueDoc(env,
+                                <xsl:value-of select="$fullsupporterclassname"/>.toOM(
+                                <xsl:value-of select="$inputparam"/>));
+                            </xsl:when>
+                            <xsl:otherwise>
                           //Unknown style!! No code is generated
                           throw UnsupportedOperationException("Unknown Style");
-                      </xsl:otherwise>
-                  </xsl:choose>
-              </xsl:when>
-              <xsl:otherwise>
-                   <xsl:choose>
-                   <xsl:when test="$style='rpc'">
+                            </xsl:otherwise>
+                        </xsl:choose>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:choose>
+                            <xsl:when test="$style='rpc'">
                        //Style is RPC. No input parameters
                           setValueRPC(env,
-                            "<xsl:value-of select="@namespace"/>",
-                            "<xsl:value-of select="@name"/>",
+                            "
+                                <xsl:value-of select="@namespace"/>",
+                            "
+                                <xsl:value-of select="@name"/>",
                             null,
                             null);
-                      </xsl:when>
-                      <!-- The follwing code is specific to XML beans-->
-                      <xsl:when test="$style='doc'">
+                            </xsl:when>
+                            <!-- The follwing code is specific to XML beans-->
+                            <xsl:when test="$style='doc'">
                        //Style is Doc. No input parameters
                        setValueDoc(env,null);
-                      </xsl:when>
-                      <xsl:otherwise>
+                            </xsl:when>
+                            <xsl:otherwise>
                          //Unknown style!! No code is generated
                           throw UnsupportedOperationException("Unknown Style");
-                      </xsl:otherwise>
-                  </xsl:choose>
+                            </xsl:otherwise>
+                        </xsl:choose>
 
-             </xsl:otherwise>
-            </xsl:choose>
+                    </xsl:otherwise>
+                </xsl:choose>
              _messageContext.setEnvelope(env);
-		      _call.invokeNonBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext, new org.apache.axis2.clientapi.Callback(){
+		      _call.invokeNonBlocking(_operations[
+                <xsl:value-of select="position()-1"/>], _messageContext, new org.apache.axis2.clientapi.Callback(){
                    public void onComplete(org.apache.axis2.clientapi.AsyncResult result){
-                         callback.receiveResult<xsl:value-of select="@name"/>(result);
+                         callback.receiveResult
+                <xsl:value-of select="@name"/>(result);
                    }
                    public void reportError(java.lang.Exception e){
-                         callback.receiveError<xsl:value-of select="@name"/>(e);
+                         callback.receiveError
+                <xsl:value-of select="@name"/>(e);
                    }
 
               }
             );
 
-            <!-- this needs to be changed -->
+                <!-- this needs to be changed -->
         }
-      </xsl:if>
-     </xsl:for-each>
+            </xsl:if>
+        </xsl:for-each>
     }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,38 +1,79 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/interface">
-    <xsl:variable name="isSync"><xsl:value-of select="@isSync"/></xsl:variable>
-    <xsl:variable name="isAsync"><xsl:value-of select="@isAsync"/></xsl:variable>
-    <xsl:variable name="callbackname"><xsl:value-of select="@callbackname"/></xsl:variable>
-    <xsl:variable name="package"><xsl:value-of select="@package"/></xsl:variable>
+        <xsl:variable name="isSync">
+            <xsl:value-of select="@isSync"/>
+        </xsl:variable>
+        <xsl:variable name="isAsync">
+            <xsl:value-of select="@isAsync"/>
+        </xsl:variable>
+        <xsl:variable name="callbackname">
+            <xsl:value-of select="@callbackname"/>
+        </xsl:variable>
+        <xsl:variable name="package">
+            <xsl:value-of select="@package"/>
+        </xsl:variable>
 
-    package <xsl:value-of select="$package"/>;
+    package
+        <xsl:value-of select="$package"/>;
 
     /*
      *  Auto generated java interface by the Axis code generator
      */
 
-    public interface <xsl:value-of select="@name"></xsl:value-of> {
-     <xsl:for-each select="method">
-         <xsl:variable name="outputtype"><xsl:value-of select="output/param/@type"></xsl:value-of></xsl:variable>
+    public interface
+        <xsl:value-of select="@name"></xsl:value-of> {
+        <xsl:for-each select="method">
+            <xsl:variable name="outputtype">
+                <xsl:value-of select="output/param/@type"></xsl:value-of>
+            </xsl:variable>
 
-         <xsl:variable name="inputtype"><xsl:value-of select="input/param/@type"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:variable name="inputparam"><xsl:value-of select="input/param/@name"></xsl:value-of></xsl:variable>  <!-- this needs to change-->
-         <xsl:if test="$isSync='1'">
+            <xsl:variable name="inputtype">
+                <xsl:value-of select="input/param/@type"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:variable name="inputparam">
+                <xsl:value-of select="input/param/@name"></xsl:value-of>
+            </xsl:variable>  <!-- this needs to change-->
+            <xsl:if test="$isSync='1'">
         /**
          * Auto generated method signature 
-         *<xsl:if test="$inputtype!=''">@param <xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>
+         *
+                <xsl:if test="$inputtype!=''">@param
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>
          */
-        public  <xsl:if test="$outputtype=''">void</xsl:if><xsl:if test="$outputtype!=''"><xsl:value-of select="$outputtype"/></xsl:if><xsl:text> </xsl:text><xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>) throws java.rmi.RemoteException;
-        </xsl:if>
-        <xsl:if test="$isAsync='1'">
+        public
+                <xsl:if test="$outputtype=''">void</xsl:if>
+                <xsl:if test="$outputtype!=''">
+                    <xsl:value-of select="$outputtype"/>
+                </xsl:if>
+                <xsl:text> </xsl:text>
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>) throws java.rmi.RemoteException;
+            </xsl:if>
+            <xsl:if test="$isAsync='1'">
          /**
          * Auto generated method signature
-         *<xsl:if test="$inputtype!=''">@param <xsl:value-of select="$inputparam"></xsl:value-of></xsl:if>
+         *
+                <xsl:if test="$inputtype!=''">@param
+                    <xsl:value-of select="$inputparam"></xsl:value-of>
+                </xsl:if>
          */
-        public  void start<xsl:value-of select="@name"/>(<xsl:if test="$inputtype!=''"><xsl:value-of select="$inputtype"/><xsl:text> </xsl:text><xsl:value-of select="$inputparam"></xsl:value-of>,</xsl:if>final <xsl:value-of select="$package"/>.<xsl:value-of select="$callbackname"/> callback) throws java.rmi.RemoteException;
-        </xsl:if>
-     </xsl:for-each>
+        public  void start
+                <xsl:value-of select="@name"/>(
+                <xsl:if test="$inputtype!=''">
+                    <xsl:value-of select="$inputtype"/>
+                    <xsl:text> </xsl:text>
+                    <xsl:value-of select="$inputparam"></xsl:value-of>,
+                </xsl:if>final
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$callbackname"/> callback) throws java.rmi.RemoteException;
+            </xsl:if>
+        </xsl:for-each>
     }
     </xsl:template>
- </xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
\ No newline at end of file