/** * Method run */ public void run() { try { symbolTable.populate(wsdlURI, username, password); generate(symbolTable); } catch (Exception e) { failure = e; } } // run
/** * Add the given Definition and Document information to the symbol table (including imported * symbols), populating it with SymTabEntries for each of the top-level symbols. When the * symbol table has been populated, iterate through it, setting the isReferenced flag * appropriately for each entry. * * @param context * @param def * @param doc * @throws IOException * @throws SAXException * @throws WSDLException * @throws ParserConfigurationException */ protected void add(String context, Definition def, Document doc) throws IOException, SAXException, WSDLException, ParserConfigurationException { URL contextURL = (context == null) ? null : getURL(null, context); populate(contextURL, def, doc, null); processTypes(); checkForUndefined(); populateParameters(); setReferences(def, doc); // uses wrapped flag set in populateParameters } // add
populate(url, imp.getDefinition(), XMLUtils.newDocument(url.toString()), url.toString());
/** * Method run */ public void run() { try { symbolTable.populate(wsdlURI, username, password); generate(symbolTable); } catch (Exception e) { failure = e; } } // run
/** * Add the given Definition and Document information to the symbol table (including imported * symbols), populating it with SymTabEntries for each of the top-level symbols. When the * symbol table has been populated, iterate through it, setting the isReferenced flag * appropriately for each entry. * * @param context * @param def * @param doc * @throws IOException * @throws SAXException * @throws WSDLException * @throws ParserConfigurationException */ protected void add(String context, Definition def, Document doc) throws IOException, SAXException, WSDLException, ParserConfigurationException { URL contextURL = (context == null) ? null : getURL(null, context); populate(contextURL, def, doc, null); processTypes(); checkForUndefined(); populateParameters(); setReferences(def, doc); // uses wrapped flag set in populateParameters } // add
/** * Method run */ public void run() { try { symbolTable.populate(wsdlURI, username, password); generate(symbolTable); } catch (Exception e) { failure = e; } } // run
/** * Add the given Definition and Document information to the symbol table (including imported * symbols), populating it with SymTabEntries for each of the top-level symbols. When the * symbol table has been populated, iterate through it, setting the isReferenced flag * appropriately for each entry. * * @param context * @param def * @param doc * @throws IOException * @throws SAXException * @throws WSDLException * @throws ParserConfigurationException */ protected void add(String context, Definition def, Document doc) throws IOException, SAXException, WSDLException, ParserConfigurationException { URL contextURL = (context == null) ? null : getURL(null, context); populate(contextURL, def, doc, null); processTypes(); checkForUndefined(); populateParameters(); setReferences(def, doc); // uses wrapped flag set in populateParameters } // add
/** * Call this method if you have a uri for the WSDL document * * @param uri wsdlURI the location of the WSDL file. * @throws IOException * @throws WSDLException * @throws SAXException * @throws ParserConfigurationException */ public void populate(String uri) throws IOException, WSDLException, SAXException, ParserConfigurationException { populate(uri, null, null); } // populate
/** * Call this method if you have a uri for the WSDL document * * @param uri wsdlURI the location of the WSDL file. * @throws IOException * @throws WSDLException * @throws SAXException * @throws ParserConfigurationException */ public void populate(String uri) throws IOException, WSDLException, SAXException, ParserConfigurationException { populate(uri, null, null); } // populate
/** * Call this method if you have a uri for the WSDL document * * @param uri wsdlURI the location of the WSDL file. * @throws IOException * @throws WSDLException * @throws SAXException * @throws ParserConfigurationException */ public void populate(String uri) throws IOException, WSDLException, SAXException, ParserConfigurationException { populate(uri, null, null); } // populate
/** * Method populate * * @param uri * @param username * @param password * @throws IOException * @throws WSDLException * @throws SAXException * @throws ParserConfigurationException */ public void populate(String uri, String username, String password) throws IOException, WSDLException, SAXException, ParserConfigurationException { if (verbose) { System.out.println(Messages.getMessage("parsing00", uri)); } Document doc = XMLUtils.newDocument(uri, username, password); this.wsdlURI = uri; try { File f = new File(uri); if (f.exists()) { uri = f.toURL().toString(); } } catch (Exception e) { } populate(uri, doc); } // populate
/** * Method populate * * @param uri * @param username * @param password * @throws IOException * @throws WSDLException * @throws SAXException * @throws ParserConfigurationException */ public void populate(String uri, String username, String password) throws IOException, WSDLException, SAXException, ParserConfigurationException { if (verbose) { System.out.println(Messages.getMessage("parsing00", uri)); } Document doc = XMLUtils.newDocument(uri, username, password); this.wsdlURI = uri; try { File f = new File(uri); if (f.exists()) { uri = f.toURL().toString(); } } catch (Exception e) { } populate(uri, doc); } // populate
/** * Method populate * * @param uri * @param username * @param password * @throws IOException * @throws WSDLException * @throws SAXException * @throws ParserConfigurationException */ public void populate(String uri, String username, String password) throws IOException, WSDLException, SAXException, ParserConfigurationException { if (verbose) { System.out.println(Messages.getMessage("parsing00", uri)); } Document doc = XMLUtils.newDocument(uri, username, password); this.wsdlURI = uri; try { File f = new File(uri); if (f.exists()) { uri = f.toURL().toString(); } } catch (Exception e) { } populate(uri, doc); } // populate
populate(url, null, XMLUtils.newDocument(filename), filename);
populate(url, null, XMLUtils.newDocument(filename), filename);
populate(url, null, XMLUtils.newDocument(filename), filename);
/** * Constructor which takes the location of the base wsdl file, and begins to * process it * * @param wsdlLocation * - the location of the wsdl file * @throws ParserConfigurationException * @throws WSDLException * @throws IOException * @throws SAXException */ public WSDLParser(String wsdlLocation) throws ParserConfigurationException, WSDLException, IOException, SAXException { this.wsdlLocation = wsdlLocation; // WSIFPluggableProviders.overrideDefaultProvider( // "http://schemas.xmlsoap.org/wsdl/soap/", // new WSIFDynamicProvider_ApacheAxis()); if (!symbolTableMap.containsKey(wsdlLocation)) { SymbolTable symbolTable = new SymbolTable(new NoopFactory() .getBaseTypeMapping(), true, false, false); // Avoid printouts like // {http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl}GetMultipleResourcePropertiesResponse // already exists symbolTable.setQuiet(true); symbolTable.populate(wsdlLocation); symbolTableMap.put(wsdlLocation, symbolTable); operationMap.put(wsdlLocation, determineOperations()); } checkWSRF(); }
/** * Call this method if your WSDL document has already been parsed as an XML DOM document. * * @param context context This is directory context for the Document. If the Document were from file "/x/y/z.wsdl" then the context could be "/x/y" (even "/x/y/z.wsdl" would work). If context is null, then the context becomes the current directory. * @param doc doc This is the XML Document containing the WSDL. * @throws IOException * @throws SAXException * @throws WSDLException * @throws ParserConfigurationException */ public void run(String context, Document doc) throws IOException, SAXException, WSDLException, ParserConfigurationException { if (getFactory() == null) { setFactory(new NoopFactory()); } symbolTable = new SymbolTable(genFactory.getBaseTypeMapping(), imports, verbose, nowrap); symbolTable.populate(context, doc); generate(symbolTable); } // run
/** * Call this method if your WSDL document has already been parsed as an XML DOM document. * * @param context context This is directory context for the Document. If the Document were from file "/x/y/z.wsdl" then the context could be "/x/y" (even "/x/y/z.wsdl" would work). If context is null, then the context becomes the current directory. * @param doc doc This is the XML Document containing the WSDL. * @throws IOException * @throws SAXException * @throws WSDLException * @throws ParserConfigurationException */ public void run(String context, Document doc) throws IOException, SAXException, WSDLException, ParserConfigurationException { if (getFactory() == null) { setFactory(new NoopFactory()); } symbolTable = new SymbolTable(genFactory.getBaseTypeMapping(), imports, verbose, nowrap); symbolTable.populate(context, doc); generate(symbolTable); } // run
/** * Call this method if your WSDL document has already been parsed as an XML DOM document. * * @param context context This is directory context for the Document. If the Document were from file "/x/y/z.wsdl" then the context could be "/x/y" (even "/x/y/z.wsdl" would work). If context is null, then the context becomes the current directory. * @param doc doc This is the XML Document containing the WSDL. * @throws IOException * @throws SAXException * @throws WSDLException * @throws ParserConfigurationException */ public void run(String context, Document doc) throws IOException, SAXException, WSDLException, ParserConfigurationException { if (getFactory() == null) { setFactory(new NoopFactory()); } symbolTable = new SymbolTable(genFactory.getBaseTypeMapping(), imports, verbose, nowrap); symbolTable.populate(context, doc); generate(symbolTable); } // run