Author: nadiramra
Date: Sat Jul  8 14:59:36 2006
New Revision: 420203

URL: http://svn.apache.org/viewvc?rev=420203&view=rev
Log:
minor cleanup..

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java

Modified: 
webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java
URL: 
http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java?rev=420203&r1=420202&r2=420203&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java 
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java 
Sat Jul  8 14:59:36 2006
@@ -1216,13 +1216,19 @@
                         if(!(nestedType instanceof BaseType))
                         {
                             TypeEntry defType = (TypeEntry)nestedType;
-                            // If there is a ref type and the ref type is not 
currently exposed because it's an "inner" type (marked by ">")then make sure 
the ref type is exposed to the user as a class
-                            // in order to expose it we simply change the name 
!                            
+
                             TypeEntry referencedType =defType.getRefType(); 
+                            if (referencedType==null)
+                                continue;
+                            
                             if(WSDL2Ws.verbose)
-                                System.out.println( "EXPOSE1: Checking whether 
to expose ref-type "+defType.getQName().getLocalPart());
+                                System.out.println( "EXPOSE1: Checking whether 
to expose ref-types for "+defType.getQName().getLocalPart());
 
-                            if(referencedType!=null && 
referencedType.getQName().getLocalPart().startsWith(">") && 
referencedType.getQName().getLocalPart().lastIndexOf(">") == 0)
+                            // If ref type is not currently exposed because 
it's an "inner" type (marked by ">")
+                            // then expose as a class by simply changing the 
name !                            
+                            
+                            
if(referencedType.getQName().getLocalPart().startsWith(">") 
+                                    && 
referencedType.getQName().getLocalPart().lastIndexOf(">") == 0)
                             {
                                 if(WSDL2Ws.verbose)
                                     System.out.println( "EXPOSE1: Exposing 
ref-type "+defType.getQName().getLocalPart());



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to