src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
/**
     * Initiates the parsing of the WSDL document. Returns the symbol table that is generated
     * by the parser. After parsing the WSDL document, various artifacts that the wsdl2ws tool needs
     * is collected for easy access.  
     * 
     * @throws Exception 
     */
Initiates the parsing of the WSDL document. Returns the symbol table that is generated
by the parser. After parsing the WSDL document, various artifacts that the wsdl2ws tool needs
is collected for easy access.

@throws Exception
Initiates the parsing of the WSDL document . Returns the symbol table that is generated by the parser . After parsing the WSDL document various artifacts that the wsdl2ws tool needs is collected for easy access . @throws Exception
public SymbolTable parse() throws Exception
    {
        c_wsdlParser = new Parser();
        c_wsdlParser.setVerbose(c_verbose);
        c_wsdlParser.setTimeout(c_timeout*1000); 
        c_wsdlParser.setNowrap(c_noWrapperStyle);
        c_wsdlParser.run(c_URIToWSDLDocument);
        c_symbolTable =  c_wsdlParser.getSymbolTable();
        if (c_verbose)
            c_symbolTable.dump(System.out);
        c_targetNameSpaceOfWSDL = c_symbolTable.getDefinition().getTargetNamespace();
        Iterator it = c_symbolTable.getHashMap().values().iterator();
        while (it.hasNext())
        {
            Vector v = (Vector) it.next();
            for (int i = 0; i < v.size(); ++i)
            {
                SymTabEntry entry = (SymTabEntry) v.elementAt(i);
                if (entry instanceof org.apache.axis.wsdl.symbolTable.ServiceEntry)
                    c_services.add(((ServiceEntry) entry).getService());
                else if (entry instanceof org.apache.axis.wsdl.symbolTable.BindingEntry)
                    c_bindings.add(entry);
            }
        }
        c_typeMap = new TypeMap();
        if (c_symbolTable !=  null)
        {
            it = c_symbolTable.getTypeIndex().values().iterator();
            while (it.hasNext())
            {
                TypeEntry type = (TypeEntry) it.next();
                Node node = type.getNode();
                if (node != null)
                {
                    if (type.getQName().getLocalPart().endsWith("_Array"))
                        useCounter = true;
                }
            }
            it = c_symbolTable.getTypeIndex().values().iterator();
            while (it.hasNext())
            {
                TypeEntry type = (TypeEntry) it.next();
                Node node = type.getNode();
                if (node != null)
                {
                    if (c_verbose)
                    {
                        System.out.println( "==>getTypeInfo: Processing type...." + type.getQName());                    
                    }
                    createTypeInfo(type);
                }
            }
        }
        return c_symbolTable;
    }
public SymbolTable parse ( ) throws Exception { c_wsdlParser = new Parser ( ) ; c_wsdlParser . setVerbose ( c_verbose ) ; c_wsdlParser . setTimeout ( c_timeout * 1000 ) ; c_wsdlParser . setNowrap ( c_noWrapperStyle ) ; c_wsdlParser . run ( c_URIToWSDLDocument ) ; c_symbolTable = c_wsdlParser . getSymbolTable ( ) ; if ( c_verbose ) c_symbolTable . dump ( System . out ) ; c_targetNameSpaceOfWSDL = c_symbolTable . getDefinition ( ) . getTargetNamespace ( ) ; Iterator it = c_symbolTable . getHashMap ( ) . values ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Vector v = ( Vector ) it . next ( ) ; for ( int i = 0 ; i < v . size ( ) ; ++ i ) { SymTabEntry entry = ( SymTabEntry ) v . elementAt ( i ) ; if ( entry instanceof org . apache . axis . wsdl . symbolTable . ServiceEntry ) c_services . add ( ( ( ServiceEntry ) entry ) . getService ( ) ) ; else if ( entry instanceof org . apache . axis . wsdl . symbolTable . BindingEntry ) c_bindings . add ( entry ) ; } } c_typeMap = new TypeMap ( ) ; if ( c_symbolTable != null ) { it = c_symbolTable . getTypeIndex ( ) . values ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { TypeEntry type = ( TypeEntry ) it . next ( ) ; Node node = type . getNode ( ) ; if ( node != null ) { if ( type . getQName ( ) . getLocalPart ( ) . endsWith ( "_Array" ) ) useCounter = true ; } } it = c_symbolTable . getTypeIndex ( ) . values ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { TypeEntry type = ( TypeEntry ) it . next ( ) ; Node node = type . getNode ( ) ; if ( node != null ) { if ( c_verbose ) { System . out . println ( "==>getTypeInfo: Processing type...." + type . getQName ( ) ) ; } createTypeInfo ( type ) ; } } } return c_symbolTable ; }
Initiates the parsing of the WSDL document.
Initiates the parsing of the WSDL document .
// ==================================================
 // Parse WSDL document
 // ==================================================   
 // Set verbose in WSDL parser
 // Set timeout for parser, setTimeout method expects the time in milliseconds.
 // Set unwrapped if requested
 // Parse the WSDL document.
 // Dump symbol table if in verbose mode.
 // ==================================================        
 // Collect various bits of information from the document.
 // ==================================================
 // Get target name space of WSDL
 // Collect services and bindings.           
 // Iterate through the symbol table, generating user-defined types and
 // storing the types in a hash table.  We need to do this twice.  We need
 // to first go through the types and ensure there is no type with a suffix of 
 // _Array, which is used by this code to generate arrays.  If there is, we need to
 // generate array types with a modified suffix, such as _Array + number.
 // ==================================================
 // Return the symbol table
 // ==================================================
