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 [25/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/template/java/LocalTestClassTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/LocalTestClassTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/LocalTestClassTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/LocalTestClassTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,16 +1,35 @@
 <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="implpackage"><xsl:value-of select="@implpackage"/></xsl:variable>
-    <xsl:variable name="callbackname"><xsl:value-of select="@callbackname"/></xsl:variable>
-    <xsl:variable name="stubname"><xsl:value-of select="@stubname"/></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="address"><xsl:value-of select="@address"/></xsl:variable>
-    <xsl:variable name="servicexmlpath"><xsl:value-of select="@servicexmlpath"/></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="implpackage">
+            <xsl:value-of select="@implpackage"/>
+        </xsl:variable>
+        <xsl:variable name="callbackname">
+            <xsl:value-of select="@callbackname"/>
+        </xsl:variable>
+        <xsl:variable name="stubname">
+            <xsl:value-of select="@stubname"/>
+        </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="address">
+            <xsl:value-of select="@address"/>
+        </xsl:variable>
+        <xsl:variable name="servicexmlpath">
+            <xsl:value-of select="@servicexmlpath"/>
+        </xsl:variable>
+    package
+        <xsl:value-of select="$package"/>;
     
 	import java.io.InputStream;
 	import java.net.ServerSocket;
@@ -33,7 +52,8 @@
      *  Auto generated Junit test case by the Axis code generator
     */
 
-    public class <xsl:value-of select="@name"/> extends junit.framework.TestCase{
+    public class
+        <xsl:value-of select="@name"/> extends junit.framework.TestCase{
     
     
     private static int count = 0;
@@ -45,11 +65,16 @@
 					.getProperty("user.dir"));
 			AxisConfiguration axisConfig = deploymentEngine.load();
 			ClassLoader classLoader = this.getClass().getClassLoader();
-			classLoader.getResource("<xsl:value-of select="$implpackage"/>.<xsl:value-of select="$interfaceName"/>");
-			classLoader.getResource("<xsl:value-of select="$implpackage"/>.<xsl:value-of select="$stubname"/>");
+			classLoader.getResource("
+        <xsl:value-of select="$implpackage"/>.
+        <xsl:value-of select="$interfaceName"/>");
+			classLoader.getResource("
+        <xsl:value-of select="$implpackage"/>.
+        <xsl:value-of select="$stubname"/>");
 			ClassLoader cl = Thread.currentThread().getContextClassLoader();
 			InputStream in = cl
-					.getResourceAsStream("<xsl:value-of select="$servicexmlpath"/>");
+					.getResourceAsStream("
+        <xsl:value-of select="$servicexmlpath"/>");
 			ServiceDescription service = new ServiceDescription();
 			deploymentEngine.buildService(service, in, classLoader);
 			
@@ -84,82 +109,119 @@
     }
 
 
-     <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'">
 
         /**
          * Auto generated test method
          */
-        public  void test<xsl:value-of select="@name"/>() throws java.lang.Exception{
+        public  void test
+                <xsl:value-of select="@name"/>() throws java.lang.Exception{
 
-        <xsl:value-of select="$implpackage"/>.<xsl:value-of select="$stubname"/> stub = new <xsl:value-of select="$implpackage"/>.<xsl:value-of select="$stubname"/>(".","<xsl:value-of select="$address"/>/<xsl:value-of select="@name"/>");
-           <xsl:choose>
-             <xsl:when test="$inputtype!=''">
-               assertNotNull(stub.<xsl:value-of select="@name"/>(
-                                (<xsl:value-of select="$inputtype"/>)createTestInput(<xsl:value-of select="$inputtype"/>.class)));//this should come as a type
-              </xsl:when>
-              <xsl:otherwise>
-               // assertNotNull(stub.<xsl:value-of select="@name"/>());
-             </xsl:otherwise>
-            </xsl:choose>
+                <xsl:value-of select="$implpackage"/>.
+                <xsl:value-of select="$stubname"/> stub = new
+                <xsl:value-of select="$implpackage"/>.
+                <xsl:value-of select="$stubname"/>(".","
+                <xsl:value-of select="$address"/>/
+                <xsl:value-of select="@name"/>");
+                <xsl:choose>
+                    <xsl:when test="$inputtype!=''">
+               assertNotNull(stub.
+                        <xsl:value-of select="@name"/>(
+                                (
+                        <xsl:value-of select="$inputtype"/>)createTestInput(
+                        <xsl:value-of select="$inputtype"/>.class)));//this should come as a type
+                    </xsl:when>
+                    <xsl:otherwise>
+               // assertNotNull(stub.
+                        <xsl:value-of select="@name"/>());
+                    </xsl:otherwise>
+                </xsl:choose>
 
 
 
         }
-        </xsl:if>
-        <xsl:if test="$isAsync='1'">
-            <xsl:variable name="tempCallbackName">tempCallback<xsl:value-of select="generate-id()"/></xsl:variable>
+            </xsl:if>
+            <xsl:if test="$isAsync='1'">
+                <xsl:variable name="tempCallbackName">tempCallback
+                    <xsl:value-of select="generate-id()"/>
+                </xsl:variable>
          /**
          * Auto generated test method
          */
-        public  void testStart<xsl:value-of select="@name"/>() throws java.lang.Exception{
-            <xsl:value-of select="$implpackage"/>.<xsl:value-of select="$stubname"/> stub = new <xsl:value-of select="$implpackage"/>.<xsl:value-of select="$stubname"/>();
-             <xsl:choose>
-             <xsl:when test="$inputtype!=''">
-                stub.start<xsl:value-of select="@name"/>(
-                   (<xsl:value-of select="$inputtype"/>)createTestInput(<xsl:value-of select="$inputtype"/>.class),
-                    new <xsl:value-of select="$tempCallbackName"/>()
+        public  void testStart
+                <xsl:value-of select="@name"/>() throws java.lang.Exception{
+                <xsl:value-of select="$implpackage"/>.
+                <xsl:value-of select="$stubname"/> stub = new
+                <xsl:value-of select="$implpackage"/>.
+                <xsl:value-of select="$stubname"/>();
+                <xsl:choose>
+                    <xsl:when test="$inputtype!=''">
+                stub.start
+                        <xsl:value-of select="@name"/>(
+                   (
+                        <xsl:value-of select="$inputtype"/>)createTestInput(
+                        <xsl:value-of select="$inputtype"/>.class),
+                    new
+                        <xsl:value-of select="$tempCallbackName"/>()
                 );
-              </xsl:when>
-              <xsl:otherwise>
-                stub.start<xsl:value-of select="@name"/>(
-                    new <xsl:value-of select="$tempCallbackName"/>()
+                    </xsl:when>
+                    <xsl:otherwise>
+                stub.start
+                        <xsl:value-of select="@name"/>(
+                    new
+                        <xsl:value-of select="$tempCallbackName"/>()
                 );
-             </xsl:otherwise>
-            </xsl:choose>
+                    </xsl:otherwise>
+                </xsl:choose>
 
 
         }
 
-        private class <xsl:value-of select="$tempCallbackName"/>  extends <xsl:value-of select="$implpackage"/>.<xsl:value-of select="$callbackname"/>{
-            public <xsl:value-of select="$tempCallbackName"/>(){ super(null);}
+        private class
+                <xsl:value-of select="$tempCallbackName"/>  extends
+                <xsl:value-of select="$implpackage"/>.
+                <xsl:value-of select="$callbackname"/>{
+            public
+                <xsl:value-of select="$tempCallbackName"/>(){ super(null);}
 
-            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) {
 			    assertNotNull(result.getResponseEnvelope().getBody().getFirstChild());
             }
 
-            public void receiveError<xsl:value-of select="@name"/>(java.lang.Exception e) {
+            public void receiveError
+                <xsl:value-of select="@name"/>(java.lang.Exception e) {
                 fail();
             }
 
         }
-      </xsl:if>
-     </xsl:for-each>
+            </xsl:if>
+        </xsl:for-each>
 
 
      public static Object createTestInput(Class paramClass){
 
       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);
+		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()"/>");
+    	OMTextImpl text = new OMTextImpl("
+        <xsl:value-of select="generate-id()"/>");
     	element1.addChild(text);
     	return element;
     }
     }
     </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/MessageReceiverTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,20 +1,23 @@
 <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="skeletonname">
-			<xsl:value-of select="@skeletonname"/>
-		</xsl:variable>
-		<xsl:variable name="dbsupportpackage">
-			<xsl:value-of select="@dbsupportpackage"/>
-		</xsl:variable>
+    <xsl:output method="text"/>
+    <xsl:template match="/interface">
+        <xsl:variable name="skeletonname">
+            <xsl:value-of select="@skeletonname"/>
+        </xsl:variable>
+        <xsl:variable name="dbsupportpackage">
+            <xsl:value-of select="@dbsupportpackage"/>
+        </xsl:variable>
 	
-    package <xsl:value-of select="@package"/>;
+    package
+        <xsl:value-of select="@package"/>;
 
     /**
      *  Auto generated message receiver
      */
 
-    public class <xsl:value-of select="@name"/> extends <xsl:value-of select="@basereceiver"/>{
+    public class
+        <xsl:value-of select="@name"/> extends
+        <xsl:value-of select="@basereceiver"/>{
     
 		public void invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext, org.apache.axis2.context.MessageContext newMsgContext)
 		throws org.apache.axis2.engine.AxisFault{
@@ -23,8 +26,9 @@
 
             // get the implementation class for the Web Service
             Object obj = getTheImplementationObject(msgContext);
-           
-            <xsl:value-of select="$skeletonname"/> skel = (<xsl:value-of select="$skeletonname"/>)obj;
+
+        <xsl:value-of select="$skeletonname"/> skel = (
+        <xsl:value-of select="$skeletonname"/>)obj;
             //Out Envelop
              org.apache.axis2.soap.SOAPEnvelope envelope = null;
              //Find the operation that has been set by the Dispatch phase.
@@ -35,98 +39,135 @@
             
             String methodName;
             if(op.getName() != null &amp; (methodName = op.getName().getLocalPart()) != null){
-            
-				<xsl:for-each select="method">
-				
-			<xsl:variable name="returntype"><xsl:value-of select="output/param/@type"/></xsl:variable>
-			<xsl:variable name="returnvariable"><xsl:value-of select="output/param/@name"/></xsl:variable>
-			<xsl:variable name="namespace"><xsl:value-of select="@namespace"/></xsl:variable>
-			<xsl:variable name="dbsupportname"><xsl:value-of select="@dbsupportname"/></xsl:variable>
-			
-			<xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
-			<xsl:variable name="style"><xsl:value-of select="@style"/></xsl:variable>
+
+        <xsl:for-each select="method">
+
+            <xsl:variable name="returntype">
+                <xsl:value-of select="output/param/@type"/>
+            </xsl:variable>
+            <xsl:variable name="returnvariable">
+                <xsl:value-of select="output/param/@name"/>
+            </xsl:variable>
+            <xsl:variable name="namespace">
+                <xsl:value-of select="@namespace"/>
+            </xsl:variable>
+            <xsl:variable name="dbsupportname">
+                <xsl:value-of select="@dbsupportname"/>
+            </xsl:variable>
+
+            <xsl:variable name="name">
+                <xsl:value-of select="@name"/>
+            </xsl:variable>
+            <xsl:variable name="style">
+                <xsl:value-of select="@style"/>
+            </xsl:variable>
 					
 					
-					if(methodName.equals("<xsl:value-of select="@name"/>")){
-											
-				
-			<xsl:if test="$returntype!=''">
-				<xsl:value-of select="$returntype"/>
-				<xsl:text> </xsl:text>
-				<xsl:value-of select="$returnvariable"/> = null;
-						</xsl:if>
-						
-						
-			<xsl:choose>			
-				<xsl:when test="$style='rpc'">
-					//rpc style				
-					<xsl:variable name="inputparamcount"><xsl:value-of select="count(input/param)"/></xsl:variable>
-				<xsl:for-each select="input/param">
-					<xsl:if test="@type!=''">
+					if(methodName.equals("
+            <xsl:value-of select="@name"/>")){
+
+
+            <xsl:if test="$returntype!=''">
+                <xsl:value-of select="$returntype"/>
+                <xsl:text> </xsl:text>
+                <xsl:value-of select="$returnvariable"/> = null;
+            </xsl:if>
+
+
+            <xsl:choose>
+                <xsl:when test="$style='rpc'">
+					//rpc style
+                    <xsl:variable name="inputparamcount">
+                        <xsl:value-of select="count(input/param)"/>
+                    </xsl:variable>
+                    <xsl:for-each select="input/param">
+                        <xsl:if test="@type!=''">
 		
 					org.apache.axis2.om.OMElement firstChild = (org.apache.axis2.om.OMElement)msgContext.getEnvelope().getBody().getFirstChild();
 					if(null == firstChild)
 						throw new org.apache.axis2.engine.AxisFault("Wrapper Element Not Found for the operation of RPC style");
 					java.util.Iterator children = firstChild.getChildren();
-					org.apache.xmlbeans.XmlObject[] params = new org.apache.xmlbeans.XmlObject[<xsl:value-of select="$inputparamcount"/>];
+					org.apache.xmlbeans.XmlObject[] params = new org.apache.xmlbeans.XmlObject[
+                            <xsl:value-of select="$inputparamcount"/>];
 					int count = 0;
-					while(children.hasNext() &amp;&amp; count &lt; <xsl:value-of select="$inputparamcount"/>){
-						params[count] = org.soapinterop.databinding.echoStringDatabindingSupporter.fromOM((org.apache.axis2.om.OMElement)children.next(), <xsl:value-of select="@type"/>.class);
+					while(children.hasNext() &amp;&amp; count &lt;
+                            <xsl:value-of select="$inputparamcount"/>){
+						params[count] = org.soapinterop.databinding.echoStringDatabindingSupporter.fromOM((org.apache.axis2.om.OMElement)children.next(),
+                            <xsl:value-of select="@type"/>.class);
 						count++;
 					}
-				if(count!= <xsl:value-of select="$inputparamcount"/>)
+				if(count!=
+                            <xsl:value-of select="$inputparamcount"/>)
 					throw new org.apache.axis2.engine.AxisFault("Parts mismatch in the message");
-						 
-					</xsl:if>
-				</xsl:for-each>
-				
-					<xsl:if test="$returntype!=''">
-						<xsl:value-of select="$returnvariable"/> =</xsl:if> skel.<xsl:value-of select="@name"/>(
-								<xsl:for-each select="input/param">
-									<xsl:if test="@type!=''">
-										(<xsl:value-of select="@type"/>)params[<xsl:value-of select="position()-1"/>]<xsl:if test="position()!=$inputparamcount">,</xsl:if>
-									</xsl:if>
-								</xsl:for-each>);
+
+                        </xsl:if>
+                    </xsl:for-each>
+
+                    <xsl:if test="$returntype!=''">
+                        <xsl:value-of select="$returnvariable"/> =
+                    </xsl:if> skel.
+                    <xsl:value-of select="@name"/>(
+                    <xsl:for-each select="input/param">
+                        <xsl:if test="@type!=''">
+										(
+                            <xsl:value-of select="@type"/>)params[
+                            <xsl:value-of select="position()-1"/>]
+                            <xsl:if test="position()!=$inputparamcount">,</xsl:if>
+                        </xsl:if>
+                    </xsl:for-each>);
 							//Create a default envelop
 								envelope = getSOAPFactory().getDefaultEnvelope();
-								org.apache.axis2.om.OMNamespace ns = getSOAPFactory().createOMNamespace("<xsl:value-of select="$namespace"/>", "<xsl:value-of select="$name"/>Responce");
+								org.apache.axis2.om.OMNamespace ns = getSOAPFactory().createOMNamespace("
+                    <xsl:value-of select="$namespace"/>", "
+                    <xsl:value-of select="$name"/>Responce");
 								org.apache.axis2.om.OMElement responseMethodName = getSOAPFactory().createOMElement(methodName + "Response", ns);
 								//Create a Omelement of the result if a result exist
-								<xsl:if test="$returntype!=''">
-									responseMethodName.setFirstChild(<xsl:value-of select="$dbsupportpackage"/>.<xsl:value-of select="$dbsupportname"/>.toOM(<xsl:value-of select="$returnvariable"/>));		
-								</xsl:if>
+                    <xsl:if test="$returntype!=''">
+									responseMethodName.setFirstChild(
+                        <xsl:value-of select="$dbsupportpackage"/>.
+                        <xsl:value-of select="$dbsupportname"/>.toOM(
+                        <xsl:value-of select="$returnvariable"/>));
+                    </xsl:if>
 											
 								envelope.getBody().setFirstChild(responseMethodName);
-				</xsl:when>
-							
-							
-							
-							
-							
-				<xsl:when test="$style='doc'">
+                </xsl:when>
+
+
+                <xsl:when test="$style='doc'">
 				//doc style
-					<xsl:if test="$returntype!=''">
-						<xsl:value-of select="$returnvariable"/> =</xsl:if> skel.<xsl:value-of select="@name"/>(<xsl:if test="input/param/@type!=''">(<xsl:value-of select="input/param/@type"/>)<xsl:value-of select="$dbsupportpackage"/>.<xsl:value-of select="$dbsupportname"/>.fromOM((org.apache.axis2.om.OMElement)msgContext.getEnvelope().getBody().getFirstChild().detach(), <xsl:value-of select="input/param/@type"/>.class)</xsl:if>);
+                    <xsl:if test="$returntype!=''">
+                        <xsl:value-of select="$returnvariable"/> =
+                    </xsl:if> skel.
+                    <xsl:value-of select="@name"/>(
+                    <xsl:if test="input/param/@type!=''">(
+                        <xsl:value-of select="input/param/@type"/>)
+                        <xsl:value-of select="$dbsupportpackage"/>.
+                        <xsl:value-of select="$dbsupportname"/>.fromOM((org.apache.axis2.om.OMElement)msgContext.getEnvelope().getBody().getFirstChild().detach(),
+                        <xsl:value-of select="input/param/@type"/>.class)
+                    </xsl:if>);
 						
 					//Create a default envelop
 					envelope = getSOAPFactory().getDefaultEnvelope();
 					//Create a Omelement of the result if a result exist
-					
-					<xsl:if test="$returntype!=''">envelope.getBody().setFirstChild(<xsl:value-of select="$dbsupportpackage"/>.<xsl:value-of select="$dbsupportname"/>.toOM(<xsl:value-of select="$returnvariable"/>));		
-					</xsl:if>											
-				</xsl:when>
-							
-							
-				<xsl:otherwise>
+
+                    <xsl:if test="$returntype!=''">envelope.getBody().setFirstChild(
+                        <xsl:value-of select="$dbsupportpackage"/>.
+                        <xsl:value-of select="$dbsupportname"/>.toOM(
+                        <xsl:value-of select="$returnvariable"/>));
+                    </xsl:if>
+                </xsl:when>
+
+
+                <xsl:otherwise>
 									//Unknown style!! No code is generated
 								  throw UnsupportedOperationException("Unknown Style");
-							</xsl:otherwise>
-			</xsl:choose>
+                </xsl:otherwise>
+            </xsl:choose>
 						
 						
 						
 					}
-			   </xsl:for-each>
+        </xsl:for-each>
 			   
 			   newMsgContext.setEnvelope(envelope);
             }
@@ -136,7 +177,7 @@
         } catch (Exception e) {
             throw org.apache.axis2.engine.AxisFault.makeFault(e);
         }
-     <xsl:for-each select="method"/>
+        <xsl:for-each select="method"/>
 		 }
 	
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -2,30 +2,52 @@
     <xsl:output method="text"/>
     <xsl:template match="/interface">
 
-    package <xsl:value-of select="@package"/>;
+    package
+        <xsl:value-of select="@package"/>;
 
     /**
      *  Auto generated java skeleton for the service by the Axis code generator
      */
 
-    public class <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-->
+    public class
+        <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-->
 
         /**
          * 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>){
+        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>){
                 //Todo fill this with the necessary business logic
-                <xsl:if test="$outputtype!=''">return null;</xsl:if>
+            <xsl:if test="$outputtype!=''">return null;</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/java/TestClassTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,15 +1,30 @@
 <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="stubname"><xsl:value-of select="@stubname"/></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>
+        <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="stubname">
+            <xsl:value-of select="@stubname"/>
+        </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"/>;
+    package
+        <xsl:value-of select="$package"/>;
     
 	import java.io.InputStream;
 	import java.net.ServerSocket;
@@ -32,107 +47,157 @@
      *  Auto generated Junit test case by the Axis code generator
     */
 
-    public class <xsl:value-of select="@name"/> extends junit.framework.TestCase{
+    public class
+        <xsl:value-of select="@name"/> extends junit.framework.TestCase{
 
-     <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:variable name="dbsupportclassname"><xsl:value-of select="@dbsupportname"></xsl:value-of></xsl:variable>
-         <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:variable name="dbsupportclassname">
+                <xsl:value-of select="@dbsupportname"></xsl:value-of>
+            </xsl:variable>
+            <xsl:if test="$isSync='1'">
 
         /**
          * Auto generated test method
          */
-        public  void test<xsl:value-of select="@name"/>() throws java.lang.Exception{
+        public  void test
+                <xsl:value-of select="@name"/>() throws java.lang.Exception{
 
-        <xsl:value-of select="$package"/>.<xsl:value-of select="$stubname"/> stub =
-                    new <xsl:value-of select="$package"/>.<xsl:value-of select="$stubname"/>();//the default implementation should point to the right endpoint
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$stubname"/> stub =
+                    new
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$stubname"/>();//the default implementation should point to the right endpoint
           //create a new databinder
-        <xsl:variable name="fullsupporterclassname"><xsl:value-of select="$dbpackage"/>.<xsl:value-of select="$dbsupportclassname"/></xsl:variable>
-        <xsl:value-of select="$fullsupporterclassname"/> databindSupporter = new <xsl:value-of select="$fullsupporterclassname"/>();
+                <xsl:variable name="fullsupporterclassname">
+                    <xsl:value-of select="$dbpackage"/>.
+                    <xsl:value-of select="$dbsupportclassname"/>
+                </xsl:variable>
+                <xsl:value-of select="$fullsupporterclassname"/> databindSupporter = new
+                <xsl:value-of select="$fullsupporterclassname"/>();
 
-           <xsl:choose>
-             <xsl:when test="$inputtype!=''">
                 <xsl:choose>
-                    <xsl:when test="$outputtype=''">
+                    <xsl:when test="$inputtype!=''">
+                        <xsl:choose>
+                            <xsl:when test="$outputtype=''">
                     //There is no output to be tested!
-                    stub.<xsl:value-of select="@name"/>((<xsl:value-of select="$inputtype"/>)databindSupporter.getTestObject(<xsl:value-of select="$inputtype"/>.class));
+                    stub.
+                                <xsl:value-of select="@name"/>((
+                                <xsl:value-of select="$inputtype"/>)databindSupporter.getTestObject(
+                                <xsl:value-of select="$inputtype"/>.class));
+                            </xsl:when>
+                            <xsl:otherwise>
+                    assertNotNull(stub.
+                                <xsl:value-of select="@name"/>((
+                                <xsl:value-of select="$inputtype"/>)databindSupporter.getTestObject(
+                                <xsl:value-of select="$inputtype"/>.class)));
+                            </xsl:otherwise>
+                        </xsl:choose>
                     </xsl:when>
                     <xsl:otherwise>
-                    assertNotNull(stub.<xsl:value-of select="@name"/>((<xsl:value-of select="$inputtype"/>)databindSupporter.getTestObject(<xsl:value-of select="$inputtype"/>.class)));
-                    </xsl:otherwise>
-                </xsl:choose>
-              </xsl:when>
-              <xsl:otherwise>
-                  <xsl:choose>
-                    <xsl:when test="$outputtype=''">
+                        <xsl:choose>
+                            <xsl:when test="$outputtype=''">
                     //There is no output to be tested!
-                    stub.<xsl:value-of select="@name"/>();
-                    </xsl:when>
-                    <xsl:otherwise>
-                    assertNotNull(stub.<xsl:value-of select="@name"/>());
+                    stub.
+                                <xsl:value-of select="@name"/>();
+                            </xsl:when>
+                            <xsl:otherwise>
+                    assertNotNull(stub.
+                                <xsl:value-of select="@name"/>());
+                            </xsl:otherwise>
+                        </xsl:choose>
                     </xsl:otherwise>
                 </xsl:choose>
-             </xsl:otherwise>
-            </xsl:choose>
 
 
 
         }
-        </xsl:if>
-        <xsl:if test="$isAsync='1'">
-            <xsl:variable name="tempCallbackName">tempCallback<xsl:value-of select="generate-id()"/></xsl:variable>
+            </xsl:if>
+            <xsl:if test="$isAsync='1'">
+                <xsl:variable name="tempCallbackName">tempCallback
+                    <xsl:value-of select="generate-id()"/>
+                </xsl:variable>
          /**
          * Auto generated test method
          */
-        public  void testStart<xsl:value-of select="@name"/>() throws java.lang.Exception{
-            <xsl:value-of select="$package"/>.<xsl:value-of select="$stubname"/> stub = new <xsl:value-of select="$package"/>.<xsl:value-of select="$stubname"/>();
+        public  void testStart
+                <xsl:value-of select="@name"/>() throws java.lang.Exception{
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$stubname"/> stub = new
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$stubname"/>();
              //create a new databinder
-            <xsl:variable name="fullsupporterclassname"><xsl:value-of select="$dbpackage"/>.<xsl:value-of select="$dbsupportclassname"/></xsl:variable>
-            <xsl:value-of select="$fullsupporterclassname"/> databindSupporter = new <xsl:value-of select="$fullsupporterclassname"/>();
-             <xsl:choose>
-             <xsl:when test="$inputtype!=''">
-                stub.start<xsl:value-of select="@name"/>((<xsl:value-of select="$inputtype"/>)databindSupporter.getTestObject(<xsl:value-of select="$inputtype"/>.class),
-                    new <xsl:value-of select="$tempCallbackName"/>()
+                <xsl:variable name="fullsupporterclassname">
+                    <xsl:value-of select="$dbpackage"/>.
+                    <xsl:value-of select="$dbsupportclassname"/>
+                </xsl:variable>
+                <xsl:value-of select="$fullsupporterclassname"/> databindSupporter = new
+                <xsl:value-of select="$fullsupporterclassname"/>();
+                <xsl:choose>
+                    <xsl:when test="$inputtype!=''">
+                stub.start
+                        <xsl:value-of select="@name"/>((
+                        <xsl:value-of select="$inputtype"/>)databindSupporter.getTestObject(
+                        <xsl:value-of select="$inputtype"/>.class),
+                    new
+                        <xsl:value-of select="$tempCallbackName"/>()
                 );
-              </xsl:when>
-              <xsl:otherwise>
-                stub.start<xsl:value-of select="@name"/>(
-                    new <xsl:value-of select="$tempCallbackName"/>()
+                    </xsl:when>
+                    <xsl:otherwise>
+                stub.start
+                        <xsl:value-of select="@name"/>(
+                    new
+                        <xsl:value-of select="$tempCallbackName"/>()
                 );
-             </xsl:otherwise>
-            </xsl:choose>
+                    </xsl:otherwise>
+                </xsl:choose>
 
 
         }
 
-        private class <xsl:value-of select="$tempCallbackName"/>  extends <xsl:value-of select="$package"/>.<xsl:value-of select="$callbackname"/>{
-            public <xsl:value-of select="$tempCallbackName"/>(){ super(null);}
+        private class
+                <xsl:value-of select="$tempCallbackName"/>  extends
+                <xsl:value-of select="$package"/>.
+                <xsl:value-of select="$callbackname"/>{
+            public
+                <xsl:value-of select="$tempCallbackName"/>(){ super(null);}
 
-            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) {
 			    assertNotNull(result.getResponseEnvelope().getBody().getFirstChild());
             }
 
-            public void receiveError<xsl:value-of select="@name"/>(java.lang.Exception e) {
+            public void receiveError
+                <xsl:value-of select="@name"/>(java.lang.Exception e) {
                 fail();
             }
 
         }
-      </xsl:if>
-     </xsl:for-each>
+            </xsl:if>
+        </xsl:for-each>
 
 
      public static Object createTestInput(Class paramClass){
 
       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);
+		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()"/>");
+    	OMTextImpl text = new OMTextImpl("
+        <xsl:value-of select="generate-id()"/>");
     	element1.addChild(text);
     	return element;
     }
     }
     </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/TestSkeletonImplTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/TestSkeletonImplTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/TestSkeletonImplTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/TestSkeletonImplTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,8 +1,11 @@
 <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="namespace"><xsl:value-of select="@namespace"/></xsl:variable>
-    package <xsl:value-of select="@package"/>;
+        <xsl:variable name="namespace">
+            <xsl:value-of select="@namespace"/>
+        </xsl:variable>
+    package
+        <xsl:value-of select="@package"/>;
     
 		import javax.xml.namespace.QName;
 		
@@ -16,33 +19,61 @@
      *  Auto generated java skeleton for the service by the Axis code generator
      */
 
-    public class <xsl:value-of select="@name"></xsl:value-of> extends <xsl:value-of select="@implpackage"/>.<xsl:value-of select="@servicename"></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-->
+    public class
+        <xsl:value-of select="@name"></xsl:value-of> extends
+        <xsl:value-of select="@implpackage"/>.
+        <xsl:value-of select="@servicename"></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-->
 
         /**
          * 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>){
+        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>){
                 //Todo fill this with the necessary business logic
-                <xsl:if test="$outputtype!=''"> 
+            <xsl:if test="$outputtype!=''">
                 //Returns an simple om element
         	OMFactory factory = OMAbstractFactory.getOMFactory();
-			OMElement element = factory.createOMElement(new QName("<xsl:value-of select="$namespace"/>", "<xsl:value-of select="generate-id()"/>"), null);
-			OMElement element1 = factory.createOMElement(new QName("<xsl:value-of select="$namespace"/>","<xsl:value-of select="generate-id()"/>"), element);
+			OMElement element = factory.createOMElement(new QName("
+                <xsl:value-of select="$namespace"/>", "
+                <xsl:value-of select="generate-id()"/>"), null);
+			OMElement element1 = factory.createOMElement(new QName("
+                <xsl:value-of select="$namespace"/>","
+                <xsl:value-of select="generate-id()"/>"), element);
 			element.addChild(element1);
-        	OMTextImpl text = new OMTextImpl("<xsl:value-of select="generate-id()"/>");
+        	OMTextImpl text = new OMTextImpl("
+                <xsl:value-of select="generate-id()"/>");
         	element1.addChild(text);
         	return element;
-        	</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/java/XMLBeansSupporterTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/XMLBeansSupporterTemplate.xsl?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/XMLBeansSupporterTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/XMLBeansSupporterTemplate.xsl Mon Jul 11 08:49:30 2005
@@ -1,25 +1,29 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="text"/>
     <xsl:template match="/class">
-    package <xsl:value-of select="@package"/>;
+    package
+        <xsl:value-of select="@package"/>;
 
     /**
      *  Auto generated supporter class for XML beans by the Axis code generator
      */
 
-    public class <xsl:value-of select="@name"/> {
-             <xsl:apply-templates />
+    public class
+        <xsl:value-of select="@name"/> {
+        <xsl:apply-templates/>
 
           public static org.apache.xmlbeans.XmlObject fromOM(org.apache.axis2.om.OMElement param,
                java.lang.Class type){
                 try{
-                    <xsl:for-each select="param">
-                    <xsl:if test="@type!=''">
-                    if (<xsl:value-of select="@type"/>.class.equals(type)){
-                        return <xsl:value-of select="@type"/>.Factory.parse(param.getXMLStreamReader()) ;
+        <xsl:for-each select="param">
+            <xsl:if test="@type!=''">
+                    if (
+                <xsl:value-of select="@type"/>.class.equals(type)){
+                        return
+                <xsl:value-of select="@type"/>.Factory.parse(param.getXMLStreamReader()) ;
                     }
-                     </xsl:if>
-                    </xsl:for-each>
+            </xsl:if>
+        </xsl:for-each>
                  }catch(java.lang.Exception e){
                     throw new RuntimeException("Data binding error",e);
                 }
@@ -30,18 +34,20 @@
         // Caution - need some manual editing to work properly
          public static org.apache.xmlbeans.XmlObject getTestObject(java.lang.Class type){
                 try{
-                   <xsl:for-each select="param">
-                    <xsl:if test="@type!=''">
-                    if (<xsl:value-of select="@type"/>.class.equals(type)){
-                        <xsl:value-of select="@type"/> emptyObject= <xsl:value-of select="@type"/>.Factory.newInstance();
+        <xsl:for-each select="param">
+            <xsl:if test="@type!=''">
+                    if (
+                <xsl:value-of select="@type"/>.class.equals(type)){
+                <xsl:value-of select="@type"/> emptyObject=
+                <xsl:value-of select="@type"/>.Factory.newInstance();
                         ////////////////////////////////////////////////
                         // TODO
                         // Fill in the empty object with necessaey values. Empty XMLBeans objects do not generate proper events
                         ////////////////////////////////////////////////
                         return emptyObject;
                     }
-                     </xsl:if>
-                    </xsl:for-each>
+            </xsl:if>
+        </xsl:for-each>
                  }catch(java.lang.Exception e){
                    throw new RuntimeException("Test object creation failure",e);
                 }
@@ -49,10 +55,11 @@
           }
      }
     </xsl:template>
-    
+
     <xsl:template match="param">
         <xsl:if test="@type!=''">
-          public  static org.apache.axis2.om.OMElement  toOM(<xsl:value-of select="@type"/> param){
+          public  static org.apache.axis2.om.OMElement  toOM(
+            <xsl:value-of select="@type"/> param){
 		    org.apache.axis2.om.impl.llom.builder.StAXOMBuilder builder = org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory.createStAXOMBuilder
             (org.apache.axis2.om.OMAbstractFactory.getOMFactory(),new org.apache.axis2.clientapi.StreamWrapper(param.newXMLStreamReader())) ;
 		    org.apache.axis2.om.OMElement documentElement = builder.getDocumentElement();
@@ -60,6 +67,6 @@
             documentElement.build();
             return documentElement;
           }
-       </xsl:if>
+        </xsl:if>
     </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/util/FileWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/FileWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/FileWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/FileWriter.java Mon Jul 11 08:49:30 2005
@@ -22,42 +22,44 @@
 *
 *  File writer utility for writing out class files
 */
+
 public class FileWriter {
 
     /**
      * Creates/ returns a file object
+     *
      * @param rootLocation - Location to be written
-     * @param packageName - package, can be '.' seperated
-     * @param fileName name of the file
-     * @param extension  type of the file, java, csharp, cpp etc
-     * @return  the File that was created
+     * @param packageName  - package, can be '.' seperated
+     * @param fileName     name of the file
+     * @param extension    type of the file, java, csharp, cpp etc
+     * @return the File that was created
      * @throws IOException
      * @throws Exception
      */
-    public static File createClassFile(File rootLocation,String packageName,String fileName,String extension) throws IOException,Exception{
+    public static File createClassFile(File rootLocation, String packageName, String fileName, String extension) throws IOException, Exception {
         File returnFile = null;
         File root = rootLocation;
 
-        if (packageName!=null){
+        if (packageName != null) {
             String directoryNames[] = packageName.split("\\.");
             File tempFile = null;
             int length = directoryNames.length;
             for (int i = 0; i < length; i++) {
-                tempFile = new File(root,directoryNames[i]);
+                tempFile = new File(root, directoryNames[i]);
                 root = tempFile;
-                if (!tempFile.exists()){
+                if (!tempFile.exists()) {
                     tempFile.mkdir();
                 }
             }
         }
 
-        if (!fileName.endsWith(extension)){
+        if (!fileName.endsWith(extension)) {
             fileName = fileName + extension;
         }
 
-        returnFile = new File(root,fileName);
+        returnFile = new File(root, fileName);
 
-        if (!returnFile.exists()){
+        if (!returnFile.exists()) {
             returnFile.createNewFile();
         }
         return returnFile;
@@ -65,33 +67,44 @@
 
     /**
      * Creates/ returns a file object
+     *
      * @param rootLocation - Location to be written
-     * @param packageName - package, can be '.' seperated
-     * @param fileName name of the file
-     * @param fileType  type of the file, java, csharp, cpp etc. Guesses the extension with the
-     * file type
-     * @return  the File that was created
+     * @param packageName  - package, can be '.' seperated
+     * @param fileName     name of the file
+     * @param fileType     type of the file, java, csharp, cpp etc. Guesses the extension with the
+     *                     file type
+     * @return the File that was created
      * @throws IOException
      * @throws Exception
      */
-    public static File createClassFile(File rootLocation,String packageName,String fileName,int fileType) throws IOException,Exception{
-        return createClassFile(rootLocation,packageName,fileName,getExtension(fileType));
+    public static File createClassFile(File rootLocation, String packageName, String fileName, int fileType) throws IOException, Exception {
+        return createClassFile(rootLocation, packageName, fileName, getExtension(fileType));
 
     }
 
     /**
      * Find the extension for a given file type
+     *
      * @param fileType
      * @return
      */
     private static String getExtension(int fileType) {
         String extension = "";
-        switch (fileType){
-            case XSLTConstants.LanguageTypes.JAVA: extension=".java";break;
-            case XSLTConstants.LanguageTypes.C_SHARP: extension=".cs";break;
-            case XSLTConstants.LanguageTypes.C_PLUS_PLUS: extension=".cpp";break;
-            case XSLTConstants.LanguageTypes.VB_DOT_NET: extension=".vb";break;
-            default: extension=".xml";
+        switch (fileType) {
+            case XSLTConstants.LanguageTypes.JAVA:
+                extension = ".java";
+                break;
+            case XSLTConstants.LanguageTypes.C_SHARP:
+                extension = ".cs";
+                break;
+            case XSLTConstants.LanguageTypes.C_PLUS_PLUS:
+                extension = ".cpp";
+                break;
+            case XSLTConstants.LanguageTypes.VB_DOT_NET:
+                extension = ".vb";
+                break;
+            default:
+                extension = ".xml";
         }
         return extension;
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/URLProcessor.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/URLProcessor.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/URLProcessor.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/URLProcessor.java Mon Jul 11 08:49:30 2005
@@ -20,6 +20,7 @@
  *
  * 
  */
+
 public class URLProcessor {
     public static final String DEFAULT_PACKAGE = "axis2";
 
@@ -27,27 +28,28 @@
      * Breaks a given url to a package
      * e.g. http://www.google.com/test will become
      * com.google.www
+     *
      * @param url
      * @return
      */
-    public static String getNameSpaceFromURL(String url){
-           String returnPackageName = "";
-           String regularExpression = "//[\\w\\.]*";
-           Pattern urlBreaker =Pattern.compile(regularExpression);
-           Matcher matcher = urlBreaker.matcher(url);
-           if (matcher.find()) {
-               String s = matcher.group();
-               s = s.replaceAll("//","");
-               String[] arrayOfItems = s.split("\\.");
-               int length = arrayOfItems.length;
-               for (int i = length; i > 0; i--) {
-                   returnPackageName = returnPackageName.concat((i==length?"":".") + arrayOfItems[i-1]);
-               }
-           }else{
-               returnPackageName = DEFAULT_PACKAGE;
-           }
+    public static String getNameSpaceFromURL(String url) {
+        String returnPackageName = "";
+        String regularExpression = "//[\\w\\.]*";
+        Pattern urlBreaker = Pattern.compile(regularExpression);
+        Matcher matcher = urlBreaker.matcher(url);
+        if (matcher.find()) {
+            String s = matcher.group();
+            s = s.replaceAll("//", "");
+            String[] arrayOfItems = s.split("\\.");
+            int length = arrayOfItems.length;
+            for (int i = length; i > 0; i--) {
+                returnPackageName = returnPackageName.concat((i == length ? "" : ".") + arrayOfItems[i - 1]);
+            }
+        } else {
+            returnPackageName = DEFAULT_PACKAGE;
+        }
 
-           return returnPackageName;
-       }
+        return returnPackageName;
+    }
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/XSLTTemplateProcessor.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/XSLTTemplateProcessor.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/XSLTTemplateProcessor.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/util/XSLTTemplateProcessor.java Mon Jul 11 08:49:30 2005
@@ -26,26 +26,28 @@
  *  The XSLT template processor
  * this is based on the JDK built in transformers
  */
+
 public class XSLTTemplateProcessor {
 
     /**
      * Parses an XML stream with an XSL stream
-     * @param out Stream to write the output
-     * @param xmlStream Source XML stream
+     *
+     * @param out        Stream to write the output
+     * @param xmlStream  Source XML stream
      * @param xsltStream Source XSL stream
      * @throws TransformerFactoryConfigurationError
+     *
      * @throws TransformerException
      */
-    public static  void parse(OutputStream out,InputStream xmlStream,InputStream xsltStream)
-            throws TransformerFactoryConfigurationError,TransformerException {
-            Source xmlSource = new StreamSource(xmlStream);
-            Source xsltSource =  new StreamSource(xsltStream);
-            Result result = new StreamResult(out);
-            Transformer transformer = TransformerFactory.newInstance().newTransformer(xsltSource);
-            transformer.transform(xmlSource, result);
+    public static void parse(OutputStream out, InputStream xmlStream, InputStream xsltStream)
+            throws TransformerFactoryConfigurationError, TransformerException {
+        Source xmlSource = new StreamSource(xmlStream);
+        Source xsltSource = new StreamSource(xsltStream);
+        Result result = new StreamResult(out);
+        Transformer transformer = TransformerFactory.newInstance().newTransformer(xsltSource);
+        transformer.transform(xmlSource, result);
 
     }
-
 
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/Component.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/Component.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/Component.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/Component.java Mon Jul 11 08:49:30 2005
@@ -51,29 +51,33 @@
      * @return
      */
     public Object getComponentProperty(Object key);
-    
+
     /**
      * Adds the <code>ExtensibilityElement</code> to the Extensible Component.
+     *
      * @param element
      */
     public void addExtensibilityElement(WSDLExtensibilityElement element);
-    
+
     /**
      * Returns the Extensibility Elements of the Extensible component;
+     *
      * @return List of <code>Element</code>s
      */
     public List getExtensibilityElements();
-    
+
     /**
-	 * Returns a <code>List</code> of ExtensibleAttributes of this component.
-	 * @return  <code>List</code> 
-	 */
-	public List getExtensibilityAttributes() ;
-	
-	/**
-	 * Adds the <code>ExtensibilityAttribute</code> as a attrebute of this 
-	 * Component.
-	 * @param attribute <code>ExtensibilityAttribute</code>
-	 */
-	public void addExtensibleAttributes(WSDLExtensibilityAttribute attribute) ;
+     * Returns a <code>List</code> of ExtensibleAttributes of this component.
+     *
+     * @return <code>List</code>
+     */
+    public List getExtensibilityAttributes();
+
+    /**
+     * Adds the <code>ExtensibilityAttribute</code> as a attrebute of this
+     * Component.
+     *
+     * @param attribute <code>ExtensibilityAttribute</code>
+     */
+    public void addExtensibleAttributes(WSDLExtensibilityAttribute attribute);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/ExtensibleComponent.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/ExtensibleComponent.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/ExtensibleComponent.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/ExtensibleComponent.java Mon Jul 11 08:49:30 2005
@@ -52,6 +52,6 @@
      * @return
      */
     public List getProperties();
-    
-        
+
+
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLBindingOperation.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLBindingOperation.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLBindingOperation.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLBindingOperation.java Mon Jul 11 08:49:30 2005
@@ -77,39 +77,42 @@
      * @param name
      */
     public void setName(QName name);
-    
+
     /**
      * Add the InFault to the Components InFaults
+     *
      * @param inFault
      */
     public void addInFault(WSDLBindingFault inFault);
-    
+
     /**
      * Add the OutFault to the Component OutFaults
+     *
      * @param outFault
      */
     public void addOutFault(WSDLBindingFault outFault);
-    
+
     /**
-     * 
      * @return The list of infault <code>WSDLBindingFault</code>s
      */
-	public List getInfaults() ;
-	/**
-	 * Sets the list of infault <code>WSDLBindingFault</code>s
-	 * @param infaults
-	 */
-	public void setInfaults(List infaults) ;
-	
-	/**
-	 * 
-	 * @return The list of Outfaults <code>WSDLBindingFault</code>s
-	 */
-	public List getOutfaults() ;
-	
-	/**
-	 * Sets the list of outfault <code>WSDLBindingFault</code>s
-	 * @param outfaults
-	 */
-	public void setOutfaults(List outfaults) ;
+    public List getInfaults();
+
+    /**
+     * Sets the list of infault <code>WSDLBindingFault</code>s
+     *
+     * @param infaults
+     */
+    public void setInfaults(List infaults);
+
+    /**
+     * @return The list of Outfaults <code>WSDLBindingFault</code>s
+     */
+    public List getOutfaults();
+
+    /**
+     * Sets the list of outfault <code>WSDLBindingFault</code>s
+     *
+     * @param outfaults
+     */
+    public void setOutfaults(List outfaults);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLConstants.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLConstants.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLConstants.java Mon Jul 11 08:49:30 2005
@@ -19,121 +19,118 @@
  * @author chathura@opensource.lk
  */
 public interface WSDLConstants {
-	/**
-	 * Field WSDL2_0_NAMESPACE
-	 */
-	public static final String WSDL2_0_NAMESPACE = "http://www.w3.org/2004/03/wsdl";
-
-	/**
-	 * Field WSDL1_1_NAMESPACE
-	 */
-	public static final String WSDL1_1_NAMESPACE = "http://schemas.xmlsoap.org/wsdl/";
-
-
-	/**
-	 * Field WSDL_MESSAGE_DIRECTION_IN
-	 */
-	public static final String WSDL_MESSAGE_DIRECTION_IN = "in";
-
-	
-	/**
-	 * Field WSDL_MESSAGE_DIRECTION_OUT
-	 */
-	public static final String WSDL_MESSAGE_DIRECTION_OUT = "out";
-
-	// ////////////////////////////////////////////////////////////////
-	// /////////////Message Exchange Pattern Constants/////////////////
-	// ////////////////////////////////////////////////////////////////
-
-	/**
-	 * Field MEP_URI_IN_ONLY
-	 */
-	public static final String MEP_URI_IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";
-	
-	public static final int MEP_CONSTANT_IN_ONLY = 10;	
-
-	/**
-	 * Field MEP_URI_ROBUST_IN_ONLY
-	 */
-	public static final String MEP_URI_ROBUST_IN_ONLY = "http://www.w3.org/2004/08/wsdl/robust-in-only";
-	
-	public static final int MEP_CONSTANT_ROBUST_IN_ONLY = 11;
-
-	/**
-	 * Field MEP_URI_IN_OUT
-	 */
-	public static final String MEP_URI_IN_OUT = "http://www.w3.org/2004/08/wsdl/in-out";
-	
-	public static final int MEP_CONSTANT_IN_OUT = 12;
-
-	/**
-	 * Field MEP_URI_IN_OPTIONAL_OUT
-	 */
-	public static final String MEP_URI_IN_OPTIONAL_OUT = "http://www.w3.org/2004/08/wsdl/in-opt-out";
-	
-	public static final int MEP_CONSTANT_IN_OPTIONAL_OUT = 13;
-
-	/**
-	 * Field MEP_URI_OUT_ONLY
-	 */
-	public static final String MEP_URI_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/out-only";
-	
-	public static final int MEP_CONSTANT_OUT_ONLY = 14;
-
-	/**
-	 * Field MEP_URI_ROBUST_OUT_ONLY
-	 */
-	public static final String MEP_URI_ROBUST_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/robust-out-only";
-	
-	public static final int MEP_CONSTANT_ROBUST_OUT_ONLY = 15;
-
-	/**
-	 * Field MEP_URI_OUT_IN
-	 */
-	public static final String MEP_URI_OUT_IN = "http://www.w3.org/2004/08/wsdl/out-in";
-	
-	public static final int MEP_CONSTANT_OUT_IN = 16;
-
-	/**
-	 * Field MEP_URI_OUT_OPTIONL_IN
-	 */
-	public static final String MEP_URI_OUT_OPTIONAL_IN = "http://www.w3.org/2004/08/wsdl/out-opt-in";
-	
-	public static final int MEP_CONSTANT_OUT_OPTIONAL_IN = 17;
-	
-	
-	
-	public static final int MEP_CONSTANT_INVALID = -1;
-
-	//////////////////////////////////////////////////
-	//////////////// Message Labels///////////////////
-	//////////////////////////////////////////////////
-
-	/**
-	 * Constant to represent the message label "In" which is used by the
-	 * following WSDL 2.0 defined MEPs: In-Only, Robust In-Only, In-Out,
-	 * In-Optional-Out, Out-In, Out-Optional-In.
-	 */
-	public static final byte MESSAGE_LABEL_IN = 0;
-	
-	public static final String MESSAGE_LABEL_IN_VALUE = "In";
-
-	/**
-	 * Constant to represent the message label "Out" which is used by the
-	 * following WSDL 2.0 defined MEPs: In-Out, In-Optional-Out, Out-Only,
-	 * Robust Out-Only, Out-In, Out-Optional-In.
-	 *  
-	 */
-	public static final int MESSAGE_LABEL_OUT = 1;
-	
-	public static final String MESSAGE_LABEL_OUT_VALUE = "Out";
+    /**
+     * Field WSDL2_0_NAMESPACE
+     */
+    public static final String WSDL2_0_NAMESPACE = "http://www.w3.org/2004/03/wsdl";
 
     /**
-     *
+     * Field WSDL1_1_NAMESPACE
+     */
+    public static final String WSDL1_1_NAMESPACE = "http://schemas.xmlsoap.org/wsdl/";
+
+
+    /**
+     * Field WSDL_MESSAGE_DIRECTION_IN
+     */
+    public static final String WSDL_MESSAGE_DIRECTION_IN = "in";
+
+
+    /**
+     * Field WSDL_MESSAGE_DIRECTION_OUT
+     */
+    public static final String WSDL_MESSAGE_DIRECTION_OUT = "out";
+
+    // ////////////////////////////////////////////////////////////////
+    // /////////////Message Exchange Pattern Constants/////////////////
+    // ////////////////////////////////////////////////////////////////
+
+    /**
+     * Field MEP_URI_IN_ONLY
+     */
+    public static final String MEP_URI_IN_ONLY = "http://www.w3.org/2004/08/wsdl/in-only";
+
+    public static final int MEP_CONSTANT_IN_ONLY = 10;
+
+    /**
+     * Field MEP_URI_ROBUST_IN_ONLY
+     */
+    public static final String MEP_URI_ROBUST_IN_ONLY = "http://www.w3.org/2004/08/wsdl/robust-in-only";
+
+    public static final int MEP_CONSTANT_ROBUST_IN_ONLY = 11;
+
+    /**
+     * Field MEP_URI_IN_OUT
+     */
+    public static final String MEP_URI_IN_OUT = "http://www.w3.org/2004/08/wsdl/in-out";
+
+    public static final int MEP_CONSTANT_IN_OUT = 12;
+
+    /**
+     * Field MEP_URI_IN_OPTIONAL_OUT
+     */
+    public static final String MEP_URI_IN_OPTIONAL_OUT = "http://www.w3.org/2004/08/wsdl/in-opt-out";
+
+    public static final int MEP_CONSTANT_IN_OPTIONAL_OUT = 13;
+
+    /**
+     * Field MEP_URI_OUT_ONLY
+     */
+    public static final String MEP_URI_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/out-only";
+
+    public static final int MEP_CONSTANT_OUT_ONLY = 14;
+
+    /**
+     * Field MEP_URI_ROBUST_OUT_ONLY
      */
-    public static final String WSDL_USE_LITERAL="literal";
-    public static final String WSDL_USE_ENCODED="encoded";
+    public static final String MEP_URI_ROBUST_OUT_ONLY = "http://www.w3.org/2004/08/wsdl/robust-out-only";
+
+    public static final int MEP_CONSTANT_ROBUST_OUT_ONLY = 15;
+
+    /**
+     * Field MEP_URI_OUT_IN
+     */
+    public static final String MEP_URI_OUT_IN = "http://www.w3.org/2004/08/wsdl/out-in";
+
+    public static final int MEP_CONSTANT_OUT_IN = 16;
+
+    /**
+     * Field MEP_URI_OUT_OPTIONL_IN
+     */
+    public static final String MEP_URI_OUT_OPTIONAL_IN = "http://www.w3.org/2004/08/wsdl/out-opt-in";
+
+    public static final int MEP_CONSTANT_OUT_OPTIONAL_IN = 17;
 
+
+    public static final int MEP_CONSTANT_INVALID = -1;
+
+    //////////////////////////////////////////////////
+    //////////////// Message Labels///////////////////
+    //////////////////////////////////////////////////
+
+    /**
+     * Constant to represent the message label "In" which is used by the
+     * following WSDL 2.0 defined MEPs: In-Only, Robust In-Only, In-Out,
+     * In-Optional-Out, Out-In, Out-Optional-In.
+     */
+    public static final byte MESSAGE_LABEL_IN = 0;
+
+    public static final String MESSAGE_LABEL_IN_VALUE = "In";
+
+    /**
+     * Constant to represent the message label "Out" which is used by the
+     * following WSDL 2.0 defined MEPs: In-Out, In-Optional-Out, Out-Only,
+     * Robust Out-Only, Out-In, Out-Optional-In.
+     */
+    public static final int MESSAGE_LABEL_OUT = 1;
+
+    public static final String MESSAGE_LABEL_OUT_VALUE = "Out";
+
+    /**
+     *
+     */
+    public static final String WSDL_USE_LITERAL = "literal";
+    public static final String WSDL_USE_ENCODED = "encoded";
 
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLDescription.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLDescription.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLDescription.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLDescription.java Mon Jul 11 08:49:30 2005
@@ -289,10 +289,11 @@
      * @return
      */
     public WSDLProperty createProperty();
-    
+
     /**
-     * Will return the first binding component the collection returned by the 
+     * Will return the first binding component the collection returned by the
      * <code>Map</code>.
+     *
      * @return
      */
     public WSDLBinding getFirstBinding();

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityAttribute.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityAttribute.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityAttribute.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityAttribute.java Mon Jul 11 08:49:30 2005
@@ -20,15 +20,14 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public interface WSDLExtensibilityAttribute {
-	
-	public abstract QName getKey();
 
-	public abstract QName getValue();
-	
-	public void setKey(QName key);
-	
-	public void setValue(QName value);
+    public abstract QName getKey();
+
+    public abstract QName getValue();
+
+    public void setKey(QName key);
+
+    public void setValue(QName value);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityElement.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityElement.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLExtensibilityElement.java Mon Jul 11 08:49:30 2005
@@ -20,14 +20,13 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public interface WSDLExtensibilityElement {
-	public boolean isRequired();
+    public boolean isRequired();
 
-	public void setRequired(boolean required);
+    public void setRequired(boolean required);
 
-	public QName getType();
+    public QName getType();
 
-	public void setType(QName type);
+    public void setType(QName type);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterface.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterface.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterface.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterface.java Mon Jul 11 08:49:30 2005
@@ -132,6 +132,6 @@
      * @param styleDefault
      */
     public void setStyleDefault(String styleDefault);
-    
-   
+
+
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java Mon Jul 11 08:49:30 2005
@@ -21,14 +21,13 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
-public interface WSDLInterfaceFault extends Component{
-	public QName getElement();
+public interface WSDLInterfaceFault extends Component {
+    public QName getElement();
 
-	public void setElement(QName element);
+    public void setElement(QName element);
 
-	public QName getName();
+    public QName getName();
 
-	public void setName(QName name);
+    public void setName(QName name);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLOperation.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLOperation.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLOperation.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLOperation.java Mon Jul 11 08:49:30 2005
@@ -121,6 +121,7 @@
     public void setSafety(boolean safe);
 
     public String getStyle();
+
     public void setStyle(String style);
 
     /**
@@ -129,15 +130,17 @@
      * @return
      */
     public String getTargetnamespace();
-    
+
     /**
      * Add the InFault to the Components InFaults
+     *
      * @param inFault
      */
     public void addInFault(WSDLFaultReference inFault);
-    
+
     /**
      * Add the OutFault to the Component OutFaults
+     *
      * @param outFault
      */
     public void addOutFault(WSDLFaultReference outFault);

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLService.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLService.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLService.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLService.java Mon Jul 11 08:49:30 2005
@@ -25,6 +25,7 @@
     public static final String STYLE_RPC = "rpc";
     public static final String STYLE_DOC = "doc";
     public static final String STYLE_MSG = "msg";
+
     /**
      * Method getEndpoints
      *

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLTypes.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLTypes.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLTypes.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLTypes.java Mon Jul 11 08:49:30 2005
@@ -21,23 +21,22 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
-public interface WSDLTypes extends Component{
-	/**
-	 * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code>
-	 *
-	 * @param qName
-	 * @param element
-	 */
-	public void addElement(WSDLExtensibilityElement element);
+public interface WSDLTypes extends Component {
+    /**
+     * Adds the <code>ExtensionElement</code> to the map keyed with the <code>QName</code>
+     *
+     * @param qName
+     * @param element
+     */
+    public void addElement(WSDLExtensibilityElement element);
 
-	/**
-	 * Will return the first Element with the given <code>QName</code>
-	 * Returns null if not found.
-	 *
-	 * @param qName
-	 * @return
-	 */
-	public WSDLExtensibilityElement getFirstElement(QName qName);
+    /**
+     * Will return the first Element with the given <code>QName</code>
+     * Returns null if not found.
+     *
+     * @param qName
+     * @return
+     */
+    public WSDLExtensibilityElement getFirstElement(QName qName);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/DefaultExtensibilityElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/DefaultExtensibilityElement.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/DefaultExtensibilityElement.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/DefaultExtensibilityElement.java Mon Jul 11 08:49:30 2005
@@ -21,21 +21,21 @@
 
 /**
  * @author chathura@opensource.lk
- * This would be the default Extension class in case that the Extensibility Element
- * in the WSDL file could not be mapped to a particular Extensibility Element. In 
- * which case the entire Extensibility Element will be kept as a DOM Element
+ *         This would be the default Extension class in case that the Extensibility Element
+ *         in the WSDL file could not be mapped to a particular Extensibility Element. In
+ *         which case the entire Extensibility Element will be kept as a DOM Element
  */
-public interface DefaultExtensibilityElement extends WSDLExtensibilityElement{
-	/**
-	 * @return The Extensibility Element as a DOM Element
-	 */
-	public Element getElement();
+public interface DefaultExtensibilityElement extends WSDLExtensibilityElement {
+    /**
+     * @return The Extensibility Element as a DOM Element
+     */
+    public Element getElement();
+
+    /**
+     * Sets the DOM Element as the extensibility Elements
+     * Content.
+     */
+    public void setElement(Element element);
 
-	/**
-	 * Sets the DOM Element as the extensibility Elements 
-	 * Content.
-	 */
-	public void setElement(Element element);
 
-	
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionConstants.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionConstants.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionConstants.java Mon Jul 11 08:49:30 2005
@@ -20,21 +20,20 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public interface ExtensionConstants {
-	
-	/**
-	 * The Type name for the SOAP Address defined in the Port/Endpoint
-	 */
-	public static final QName SOAP_ADDRESS =  new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address");
-	
-	public static final QName SOAP_OPERATION = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "operation");
-	
-	public static final QName SCHEMA = new QName("http://www.w3.org/2001/XMLSchema", "schema");
-	
-	public static final QName SOAP_BODY = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "body");
-	
-	public static final QName SOAP_BINDING = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "binding");
+
+    /**
+     * The Type name for the SOAP Address defined in the Port/Endpoint
+     */
+    public static final QName SOAP_ADDRESS = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address");
+
+    public static final QName SOAP_OPERATION = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "operation");
+
+    public static final QName SCHEMA = new QName("http://www.w3.org/2001/XMLSchema", "schema");
+
+    public static final QName SOAP_BODY = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "body");
+
+    public static final QName SOAP_BINDING = new QName("http://schemas.xmlsoap.org/wsdl/soap/", "binding");
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionFactory.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionFactory.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/ExtensionFactory.java Mon Jul 11 08:49:30 2005
@@ -22,14 +22,14 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public interface ExtensionFactory {
-	/**
-	 * Returns the correct "Specific" ExtensibilityElement given the 
-	 * <code>QName</code> 
-	 * @param qName QName of the ExtensibilityElement found in the WSDL
-	 * @return the Specific implementation for the particular QName given.
-	 */
-	public WSDLExtensibilityElement getExtensionElement(QName qName);
+    /**
+     * Returns the correct "Specific" ExtensibilityElement given the
+     * <code>QName</code>
+     *
+     * @param qName QName of the ExtensibilityElement found in the WSDL
+     * @return the Specific implementation for the particular QName given.
+     */
+    public WSDLExtensibilityElement getExtensionElement(QName qName);
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/SOAPAddress.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/SOAPAddress.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/SOAPAddress.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/SOAPAddress.java Mon Jul 11 08:49:30 2005
@@ -20,18 +20,18 @@
 
 /**
  * @author chathura@opensource.lk
- * This Extensibility Element is extended to handle particularly the
- * SOAP Adress or the Endpoint URL.
+ *         This Extensibility Element is extended to handle particularly the
+ *         SOAP Adress or the Endpoint URL.
  */
 public interface SOAPAddress extends WSDLExtensibilityElement {
-	
-	/**
-	 * Gets the Endpoint adress
-	 */
-	public String getLocationURI();
 
-	/**
-	 * Sets the Endpoint Address
-	 */
-	public void setLocationURI(String locationURI);
+    /**
+     * Gets the Endpoint adress
+     */
+    public String getLocationURI();
+
+    /**
+     * Sets the Endpoint Address
+     */
+    public void setLocationURI(String locationURI);
 }