As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?><br><!– Published by JAX-WS RI at <a href="http://jax-ws.dev.java.net" rel="nofollow noopener noreferrer">http://jax-ws.dev.java.net</a>. RI's version is JAX-WS RI 2.1.6 in JDK 6. –><br><!– Generated by JAX-WS RI at <a href="http://jax-ws.dev.java.net" rel="nofollow noopener noreferrer">http://jax-ws.dev.java.net</a>. RI's version is JAX-WS RI 2.1.6 in JDK 6. –><br><definitions xmlns:soap="<a href="http://schemas.xmlsoap.org/wsdl/soap/" rel="nofollow noopener noreferrer">http://schemas.xmlsoap.org/wsdl/soap/</a>"<br> xmlns:tns="<a href="http://webservice.impl.engine.activiti.org/" rel="nofollow noopener noreferrer">http://webservice.impl.engine.activiti.org/</a>"<br> xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer">http://www.w3.org/2001/XMLSchema</a>"<br> xmlns="<a href="http://schemas.xmlsoap.org/wsdl/" rel="nofollow noopener noreferrer">http://schemas.xmlsoap.org/wsdl/</a>"<br> targetNamespace="<a href="http://webservice.impl.engine.activiti.org/" rel="nofollow noopener noreferrer">http://webservice.impl.engine.activiti.org/</a>" name="Counter"><br> <types><br> <xsd:schema><br> <xsd:import namespace="<a href="http://webservice.impl.engine.activiti.org/" rel="nofollow noopener noreferrer">http://webservice.impl.engine.activiti.org/</a>"<br> schemaLocation="<a href="http://localhost:63081/counter?xsd=1" rel="nofollow noopener noreferrer">http://localhost:63081/counter?xsd=1</a>"></xsd:import><br> </xsd:schema><br> </types><br> …
private Element getRootTypes() {<br> try {<br> DOMParser parser = new DOMParser();<br> parser.parse(this.wsdlLocation);<br> …
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();<br> dbf.setNamespaceAware(true);<br> DocumentBuilder db = dbf.newDocumentBuilder();<br> Document doc = db.parse(this.wsdlLocation);<br> …
private Element getRootTypes() {<br> Element schemaElement = null;<br> try {<br> WSDLFactory wsdlFactory = WSDLFactory.newInstance();<br> WSDLReader reader = wsdlFactory.newWSDLReader();<br> Definition definition = reader.readWSDL(this.wsdlLocation);<br> Types types = definition.getTypes();<br> for (Object object : types.getExtensibilityElements()) {<br> Schema schema = (Schema) object;<br> if (schema.getImports().isEmpty()) {<br> schemaElement = schema.getElement();<br> } else {<br> for (Object value : schema.getImports().values()) {<br> for (Object si : ((List)value)) {<br> schemaElement = ((SchemaImport)si).getReferencedSchema().getElement();<br> }<br> }<br> }<br><br> }<br> } catch (WSDLException e) {<br> throw new ActivitiException(e.getMessage(), e);<br> }<br> return schemaElement;<br> }