public Import createImport() { return _def.createImport(); }
public Import createImport() { if (isDebugEnabled) { log.debug(myClassName + ".createImport()"); } if (wsdlDefinition != null) { return wsdlDefinition.createImport(); } return null; }
public Import createImport() { if (isDebugEnabled) { log.debug(myClassName + ".createImport()"); } if (wsdlDefinition != null) { return wsdlDefinition.createImport(); } return null; }
public Import createImport() { if (isDebugEnabled) { log.debug(myClassName + ".createImport()"); } if (wsdlDefinition != null) { return wsdlDefinition.createImport(); } return null; }
public Import createImport() { if (isDebugEnabled) { log.debug(myClassName + ".createImport()"); } if (wsdlDefinition != null) { return wsdlDefinition.createImport(); } return null; }
throws WSDLException Import importDef = def.createImport();
public Import createImport() { if (isDebugEnabled) { log.debug(myClassName + ".createImport()"); } getWrappedDefinitionForUse(); Import results = null; if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } results = wsdlDefinition.createImport(); } doneUsingWrappedDefinition(); return results; }
public Import createImport() { if (isDebugEnabled) { log.debug(myClassName + ".createImport()"); } getWrappedDefinitionForUse(); Import results = null; if (wsdlDefinition != null) { if (hasBeenSaved) { hasBeenUpdatedSinceSaving = true; } results = wsdlDefinition.createImport(); } doneUsingWrappedDefinition(); return results; }
/** * Create and add an import * * @param def <code>Definition</code> * @param tns target namespace * @param loc target location */ protected void writeImport(Definition def, String tns, String loc) { Import imp = def.createImport(); imp.setNamespaceURI(tns); if ((loc != null) && !loc.equals("")) { imp.setLocationURI(loc); } def.addImport(imp); }
/** * Create and add an import * * @param def <code>Definition</code> * @param tns target namespace * @param loc target location */ protected void writeImport(Definition def, String tns, String loc) { Import imp = def.createImport(); imp.setNamespaceURI(tns); if ((loc != null) && !loc.equals("")) { imp.setLocationURI(loc); } def.addImport(imp); }
/** * Create and add an import * * @param def <code>Definition</code> * @param tns target namespace * @param loc target location */ protected void writeImport(Definition def, String tns, String loc) { Import imp = def.createImport(); imp.setNamespaceURI(tns); if ((loc != null) && !loc.equals("")) { imp.setLocationURI(loc); } def.addImport(imp); }
public void addWSDLDefinitionImport(Definition rootDefn, Definition defn, String prefix, File file) { if (rootDefn.getImports().get(defn.getTargetNamespace()) == null && !".wsdl".equals(file.getName())) { // Only import if not already done to prevent multiple imports of the same file // in the WSDL. Also watch out for empty fileNames, which by this point in the // code would show up as ".wsdl". Import importDefn = rootDefn.createImport(); if (!ignoreImports) { importDefn.setLocationURI(file.toURI().toString()); } importDefn.setNamespaceURI(defn.getTargetNamespace()); rootDefn.addImport(importDefn); } if (!rootDefn.getNamespaces().values().contains(defn.getTargetNamespace())) { rootDefn.addNamespace(prefix, defn.getTargetNamespace()); } if (!importedDefns.containsKey(file)) { importedDefns.put(file, defn); } }
private static boolean addImport(QName name, Class type, WSDLDefinition wsdlDef, Definition newDef, List<WSDLDefinition> imports) { String namespace = name.getNamespaceURI(); if (newDef.getImports(namespace) == null) { WSDLDefinition impDef = findDefinition(wsdlDef, name, type); if (impDef != null) { Import imp = newDef.createImport(); imp.setNamespaceURI(namespace); imp.setLocationURI(impDef.getURI().toString()); imp.setDefinition(impDef.getDefinition()); newDef.addNamespace("ns" + imports.size(), namespace); newDef.addImport(imp); imports.add(impDef); return true; } else { // import was not added because element not found return false; } } return true; }
private static boolean addImport(QName name, Class type, WSDLDefinition wsdlDef, Definition newDef, List<WSDLDefinition> imports) { String namespace = name.getNamespaceURI(); if (newDef.getImports(namespace) == null) { WSDLDefinition impDef = findDefinition(wsdlDef, name, type); if (impDef != null) { Import imp = newDef.createImport(); imp.setNamespaceURI(namespace); imp.setLocationURI(impDef.getURI().toString()); imp.setDefinition(impDef.getDefinition()); newDef.addNamespace("ns" + imports.size(), namespace); newDef.addImport(imp); imports.add(impDef); return true; } else { // import was not added because element not found return false; } } return true; }
public static Definition createImportDef(Definition definition, String targetNamespace, String importUri) throws Exception { // Create definition Definition def = WSDLFactory.newInstance().newDefinition(); def.setTargetNamespace(targetNamespace); // Add namespaces Map<?, ?> namespaces = definition.getNamespaces(); for (Iterator<?> iter = namespaces.keySet().iterator(); iter.hasNext();) { String prefix = (String) iter.next(); String uri = definition.getNamespace(prefix); def.addNamespace(prefix, uri); } def.addNamespace("tns", targetNamespace); def.addNamespace("tnspt", definition.getTargetNamespace()); // Create import Import imp = def.createImport(); imp.setNamespaceURI(definition.getTargetNamespace()); imp.setLocationURI(importUri); imp.setDefinition(definition); def.addImport(imp); return def; }
javax.wsdl.Import imp = facade.createImport(); imp.setNamespaceURI(d.getNamespace()); imp.setDefinition(d.getDefinition());
javax.wsdl.Import imp = facade.createImport(); imp.setNamespaceURI(d.getNamespace()); imp.setDefinition(d.getDefinition());
Import importDef = importingDef.createImport();
portTypeDef = newDefinition(service.getInterface().getName(), service.getInterface().getName().getNamespaceURI()); Import wsdlImport = definition.createImport(); String tns = service.getInterface().getName().getNamespaceURI(); wsdlImport.setDefinition(portTypeDef);
portTypeDef = newDefinition(service.getInterface().getName(), service.getInterface().getName().getNamespaceURI()); Import wsdlImport = definition.createImport(); String tns = service.getInterface().getName().getNamespaceURI(); wsdlImport.setDefinition(portTypeDef);