strBuf.append("\ndefinition=" + definition.getDocumentBaseURI()); strBuf.append("\ndefinition namespaceURI=" + definition.getTargetNamespace());
public String getDocumentBaseURI() { // Get the URI of the base document for the Definition. // This identifies the origin of the Definition. // Note that this is the URI of the base document, not the imports. if (isDebugEnabled) { log.debug(myClassName + ".getDocumentBaseURI()"); } if (wsdlDefinition != null) { return wsdlDefinition.getDocumentBaseURI(); } return null; }
contextURI = def.getDocumentBaseURI(); Definition importedDef = null; InputStream inputStream = null;
public void addError(Location loc, String msg) { String errMsg = loc != null ? "line " + loc.getLineNumber() + " of " : ""; errMsg = errMsg + def.getDocumentBaseURI() + " " + msg; addErrorMessage(errMsg); }
private Document getWSDLDocument() throws Exception { if (baseDoc != null) { return baseDoc; } return getWSDLDocument(this.definition.getDocumentBaseURI()); }
public WSDLServiceFactory(Bus b, Definition d) { setBus(b); definition = d; wsdlUrl = d.getDocumentBaseURI(); }
public void addError(Location loc, String msg) { String errMsg = loc != null ? "line " + loc.getLineNumber() + " of " : ""; errMsg = errMsg + def.getDocumentBaseURI() + " " + msg; addErrorMessage(errMsg); }
schema.setDocumentBaseURI(def.getDocumentBaseURI());
public void writeWSDL(String name, Definition definition) { try { Map<String, String> baseURIwsdlNameMap = new HashMap<String, String>(); // add the initial definition to the map baseURIwsdlNameMap.put(definition.getDocumentBaseURI(), name + ".wsdl"); writeWSDL(definition, name + ".wsdl", new HashMap<String, String>(), baseURIwsdlNameMap); } catch (Exception e) { throw new SoapException("WSDL writing failed!", e); } }
public void process() throws ToolException { if (env == null) { env = new ProcessorEnvironment(); env.put("wsdlurl", wsdlDefinition.getDocumentBaseURI()); } }
public WSDLServiceBuilder(Definition definition) { this.definition = definition; definitions.add(definition); this.systemId = definition.getDocumentBaseURI(); // this is best we have, so use it. bindingAnnotators.add(new SoapBindingAnnotator()); schemas.setSchemaResolver(new XmlSchemaURIResolver()); }
private void collectValidationPoints() throws Exception { if (services.isEmpty()) { LOG.log(Level.WARNING, "WSDL document " + this.definition.getDocumentBaseURI() + " does not define any services"); //addWarning("WSDL document does not define any services"); Collection<QName> ports = CastUtils.cast(this.definition.getAllPortTypes().keySet()); portTypeRefNames.addAll(ports); } else { collectValidationPointsForBindings(); } collectValidationPointsForPortTypes(); collectValidationPointsForMessages(); }
/** * Internal method processes WSDL definition. * @param def a WSDL definition. */ private void processWSDL(Definition def) { if (def.getTypes() != null) processTypes(def.getTypes(), def.getDocumentBaseURI()); }
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { XMLHttpAddress xmlHttpAddress = (XMLHttpAddress)extReg.createExtension(parentType, elementType); xmlHttpAddress.setElement(el); xmlHttpAddress.setElementType(elementType); xmlHttpAddress.setDocumentBaseURI(def.getDocumentBaseURI()); xmlHttpAddress.setLocation(el.getAttribute(ToolConstants.XMLBINDING_HTTP_LOCATION)); return xmlHttpAddress; }
public Definition cloneDefinition(WSDLFactory factory, Definition definition) throws WSDLException { Element root = definition.getDocumentationElement(); root = (Element)root.cloneNode(true); WSDLReader reader = factory.newWSDLReader(); return reader.readWSDL(definition.getDocumentBaseURI(), root); }
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { XMLFormatBinding xmlFormatBinding = (XMLFormatBinding)extReg.createExtension(parentType, elementType); xmlFormatBinding.setElement(el); xmlFormatBinding.setElementType(elementType); xmlFormatBinding.setDocumentBaseURI(def.getDocumentBaseURI()); return xmlFormatBinding; }
public Definition cloneDefinition(WSDLFactory factory, Definition definition) throws WSDLException { Element root = definition.getDocumentationElement(); root = (Element)root.cloneNode(true); WSDLReader reader = factory.newWSDLReader(); return reader.readWSDL(definition.getDocumentBaseURI(), root); }
public void visit(Import im, Object parent, WSDLTraversalContext ctx) { importFound = true; if (im.getDefinition() != null && im.getLocationURI() != null) processWSDL(im.getDefinition().getDocumentBaseURI()); }
public JAXWSBinding parse(Class parentType, Element element, Definition def) throws WSDLException { ExtensionRegistry extReg = def.getExtensionRegistry(); JAXWSBinding jaxwsBinding = (JAXWSBinding)extReg.createExtension(parentType, ToolConstants.JAXWS_BINDINGS); jaxwsBinding.setElementType(ToolConstants.JAXWS_BINDINGS); jaxwsBinding.setElement(element); jaxwsBinding.setDocumentBaseURI(def.getDocumentBaseURI()); parseElement(jaxwsBinding, element); return jaxwsBinding; }
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException { XMLFormat xmlFormat = (XMLFormat)extReg.createExtension(parentType, elementType); xmlFormat.setElement(el); xmlFormat.setElementType(elementType); xmlFormat.setDocumentBaseURI(def.getDocumentBaseURI()); XMLFormatParser xmlBindingParser = new XMLFormatParser(); xmlBindingParser.parseElement(def, xmlFormat, el); return xmlFormat; }