outStream.write(separator); writer.writeWSDL(definition, outStream); for (WSDLDefinition importedWSDLDefintion : wsdlDefinition.getImportedDefinitions()){ outStream.write(separator); baseURI = importedWSDLDefintion.getLocation().toString();
private static WSDLDefinition findDefinition(WSDLDefinition wsdlDef, QName name, Class type) { if (wsdlDef == null || name == null) { return wsdlDef; } if (wsdlDef.getURI() != null) { // not a facade Definition def = wsdlDef.getDefinition(); Map types = type == PortType.class ? def.getPortTypes() : def.getBindings(); if (types.get(name) != null) { return wsdlDef; } } for (WSDLDefinition impDef : wsdlDef.getImportedDefinitions()) { WSDLDefinition d = findDefinition(impDef, name, type); if (d != null) { return d; } } return null; }
private static WSDLDefinition findDefinition(WSDLDefinition wsdlDef, QName name, Class type) { if (wsdlDef == null || name == null) { return wsdlDef; } if (wsdlDef.getURI() != null) { // not a facade Definition def = wsdlDef.getDefinition(); Map types = type == PortType.class ? def.getPortTypes() : def.getBindings(); if (types.get(name) != null) { return wsdlDef; } } for (WSDLDefinition impDef : wsdlDef.getImportedDefinitions()) { WSDLDefinition d = findDefinition(impDef, name, type); if (d != null) { return d; } } return null; }
if (resolved != null && !resolved.isUnresolved()) { imp.setDefinition(resolved.getDefinition()); if (!model.getImportedDefinitions().contains(resolved)) { model.getImportedDefinitions().add(resolved); resolved = read(null, uri, uri.toURL(), context); imp.setDefinition(resolved.getDefinition()); if (!model.getImportedDefinitions().contains(resolved)) { model.getImportedDefinitions().add(resolved); resolved = read(null, locationURI, locationURI.toURL(), context); imp.setDefinition(resolved.getDefinition()); if (!model.getImportedDefinitions().contains(resolved)) { model.getImportedDefinitions().add(resolved);
if (resolved != null && !resolved.isUnresolved()) { imp.setDefinition(resolved.getDefinition()); if (!model.getImportedDefinitions().contains(resolved)) { model.getImportedDefinitions().add(resolved); resolved = read(null, uri, uri.toURL(), context); imp.setDefinition(resolved.getDefinition()); if (!model.getImportedDefinitions().contains(resolved)) { model.getImportedDefinitions().add(resolved); resolved = read(null, locationURI, locationURI.toURL(), context); imp.setDefinition(resolved.getDefinition()); if (!model.getImportedDefinitions().contains(resolved)) { model.getImportedDefinitions().add(resolved);
WSDLDefinition theWSDL = theImport.getWSDLDefinition(); wsdlDefinitions.add(theWSDL.getDefinition()); for (WSDLDefinition importedWSDL: theWSDL.getImportedDefinitions()) { wsdlDefinitions.add(importedWSDL.getDefinition());
WSDLDefinition theWSDL = theImport.getWSDLDefinition(); wsdlDefinitions.add(theWSDL.getDefinition()); for (WSDLDefinition importedWSDL: theWSDL.getImportedDefinitions()) { wsdlDefinitions.add(importedWSDL.getDefinition());
private static void addSchemas(WSDLDefinition wsdlDef, AxisService axisService) { for (XSDefinition xsDef : wsdlDef.getXmlSchemas()) { if (xsDef.getSchema() != null) { axisService.addSchema(xsDef.getSchema()); updateSchemaRefs(xsDef.getSchema(), axisService.getName()); } } for (WSDLDefinition impDef : wsdlDef.getImportedDefinitions()) { addSchemas(impDef, axisService); } }
resolved = resolveImports(WSDLDefinition.class, wsdlDefinition, context); if (!resolved.isUnresolved()) { if (resolved.getImportedDefinitions().isEmpty()) { if (resolved.getDefinition().getTargetNamespace().equals(imp.getDefinition().getTargetNamespace())) { wsdlDef.getImportedDefinitions().add(resolved); imp.setLocationURI(resolved.getURI().toString()); for (WSDLDefinition def : resolved.getImportedDefinitions()) { if (def.getDefinition().getTargetNamespace().equals(imp.getDefinition().getTargetNamespace())) { wsdlDef.getImportedDefinitions().add(def); imp.setLocationURI(def.getURI().toString()); break;
facade.addImport(imp); aggregated.getImportedDefinitions().add(d);
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions()); wsdlDefinition.getXmlSchemas().addAll(resolved.getXmlSchemas()); wsdlDefinition.setUnresolved(false);
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions()); wsdlDefinition.getXmlSchemas().addAll(resolved.getXmlSchemas()); wsdlDefinition.setUnresolved(false);
resolved = resolveImports(WSDLDefinition.class, wsdlDefinition, context); if (!resolved.isUnresolved()) { if (resolved.getImportedDefinitions().isEmpty()) { if (resolved.getDefinition().getTargetNamespace().equals(imp.getDefinition().getTargetNamespace())) { wsdlDef.getImportedDefinitions().add(resolved); imp.setLocationURI(resolved.getURI().toString()); for (WSDLDefinition def : resolved.getImportedDefinitions()) { if (def.getDefinition().getTargetNamespace().equals(imp.getDefinition().getTargetNamespace())) { wsdlDef.getImportedDefinitions().add(def); imp.setLocationURI(def.getURI().toString()); break;
facade.addImport(imp); aggregated.getImportedDefinitions().add(d);
String wsdlName = imp.getDefinition().getDocumentBaseURI(); WSDLInfo wsdlInfo = (WSDLInfo)xmlMap.get(getFilenameWithoutPath(wsdlName)); wsdlDefinition.getImportedDefinitions().add(wsdlInfo.getWsdlDefintion());
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions()); wsdlDefinition.getXmlSchemas().addAll(resolved.getXmlSchemas()); wsdlDefinition.setUnresolved(false);
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions()); wsdlDefinition.getXmlSchemas().addAll(resolved.getXmlSchemas()); wsdlDefinition.setUnresolved(false);
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions()); wsdlDefinition.getXmlSchemas().addAll(resolved.getXmlSchemas()); wsdlDefinition.setUnresolved(false);
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions()); wsdlDefinition.getXmlSchemas().addAll(resolved.getXmlSchemas()); wsdlDefinition.setUnresolved(false);