/** * 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; }
map.put(rootWsdl,sanitize(rootWsdlFileName));
if( !options.quiet ) listener.message(WscompileMessages.WSIMPORT_FETCHING_METADATA()); options.wsdlLocation = new WSDLFetcher(options,listener).fetchWsdls(forest);
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override
if( !options.quiet ) listener.message(WscompileMessages.WSIMPORT_FETCHING_METADATA()); options.wsdlLocation = new WSDLFetcher(options,listener).fetchWsdls(forest);
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override
/** * 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; }
if( !options.quiet ) listener.message(WscompileMessages.WSIMPORT_FETCHING_METADATA()); options.wsdlLocation = new WSDLFetcher(options,listener).fetchWsdls(forest);
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override
map.put(rootWsdl,sanitize(rootWsdlFileName));
/** * 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; }
if( !options.quiet ) listener.message(WscompileMessages.WSIMPORT_FETCHING_METADATA()); options.wsdlLocation = new WSDLFetcher(options,listener).fetchWsdls(forest);
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override
map.put(rootWsdl,sanitize(rootWsdlFileName));
/** * 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; }
map.put(rootWsdl,sanitize(rootWsdlFileName));