ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info Type.java
Date Fri, 13 Aug 2004 12:28:08 GMT
damitha     2004/08/13 05:28:08

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info Type.java
  Log:
  Resolved the fault SOAP Message
  
  Revision  Changes    Path
  1.18      +27 -15    ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/Type.java
  
  Index: Type.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/Type.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Type.java	10 Aug 2004 06:54:43 -0000	1.17
  +++ Type.java	13 Aug 2004 12:28:08 -0000	1.18
  @@ -160,15 +160,21 @@
           // an underscore to make sure we don't run
           // into name collisions with similarly named
           // non-anonymous types
  -        StringBuffer sb = new StringBuffer(attribName);
  -        int aidx = -1;
  -
  -        while ((aidx = sb.toString().indexOf(SymbolTable.ANON_TOKEN)) > -1) {
  -            sb.replace(aidx, aidx + SymbolTable.ANON_TOKEN.length(), "_");
  -        }
  -
  -        attribName = sb.toString();
  +        // StringBuffer sb = new StringBuffer(attribName);
  +        // int aidx = -1;
   
  +        // while ((aidx = sb.toString().indexOf(SymbolTable.ANON_TOKEN)) > -1) {
  +        // sb.replace(aidx, aidx + SymbolTable.ANON_TOKEN.length(), "_");
  +        // }
  +
  +        // attribName = sb.toString();
  +	// Nithya:
  +	// To resolve fault soap message issue
  +	
  +	if (attribName.lastIndexOf('>') > 1 )
  +	{
  +	    attribName =attribName.substring(attribName.lastIndexOf('>')+1,attribName.length());
  +        }        
           attribName = TypeMap.resoleveWSDL2LanguageNameClashes(attribName,this.language);
   
           if (hasOrder)
  @@ -200,15 +206,21 @@
           	// an underscore to make sure we don't run
   	        // into name collisions with similarly named
           	// non-anonymous types
  -	        StringBuffer sb = new StringBuffer(attribName);
  -        	int aidx = -1;
  -
  -	        while ((aidx = sb.toString().indexOf(SymbolTable.ANON_TOKEN)) > -1) {
  -        	    sb.replace(aidx, aidx + SymbolTable.ANON_TOKEN.length(), "_");
  -	        }
  +	        //StringBuffer sb = new StringBuffer(attribName);
  +        	//int aidx = -1;
   
  -        	attribName = sb.toString();
  +	        //while ((aidx = sb.toString().indexOf(SymbolTable.ANON_TOKEN)) > -1) {
  +        	//    sb.replace(aidx, aidx + SymbolTable.ANON_TOKEN.length(), "_");
  +	       // }
  +
  +        	//attribName = sb.toString();
  +		//Nithya:
  +		//to resolve fault soap message
   		
  +		if (attribName.lastIndexOf('>') > 1 )
  +		{
  +		    attribName =attribName.substring(attribName.lastIndexOf('>')+1,attribName.length());
  +		}		
   		// Samisa: This second call to TypeMap.resoleveWSDL2LanguageNameClashes
   		// is made to make sure after replacinf ANON_TOKEN it is still not a keyword
   	        attribName = TypeMap.resoleveWSDL2LanguageNameClashes(attribName,this.language);
  
  
  

Mime
View raw message