/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }
/** * Fetches the wsdls in the DOMForest to the options.destDir * @param forest * @return location of fetched root WSDL document * @throws IOException * @throws XMLStreamException * @throws FileNotFoundException */ public String fetchWsdls(MetadataFinder forest) throws IOException, XMLStreamException { String rootWsdl = null; for(String root: forest.getRootDocuments()) { rootWsdl = root; } Set<String> externalRefs = forest.getExternalReferences(); Map<String,String> documentMap = createDocumentMap(forest, getWSDLDownloadDir(), rootWsdl, externalRefs); String rootWsdlName = fetchFile(rootWsdl,forest, documentMap,getWSDLDownloadDir()); for(String reference: forest.getExternalReferences()) { fetchFile(reference,forest,documentMap,getWSDLDownloadDir()); } return WSDL_PATH +"/" + rootWsdlName; }