05-05-2011 03:59 AM
05-05-2011 04:01 AM
05-05-2011 04:10 AM
<?xml version="1.0" encoding="UTF-8"?>
<!– Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6. –>
<!– Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6. –>
<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://webservice.impl.engine.activiti.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://webservice.impl.engine.activiti.org/" name="Counter">
<types>
<xsd:schema>
<xsd:import namespace="http://webservice.impl.engine.activiti.org/"
schemaLocation="http://localhost:63081/counter?xsd=1"></xsd:import>
</xsd:schema>
</types>
…
05-05-2011 04:13 AM
private Element getRootTypes() {
try {
DOMParser parser = new DOMParser();
parser.parse(this.wsdlLocation);
…
This should be handled using JAXP. like this: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(this.wsdlLocation);
…
05-05-2011 05:42 AM
private Element getRootTypes() {
Element schemaElement = null;
try {
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader reader = wsdlFactory.newWSDLReader();
Definition definition = reader.readWSDL(this.wsdlLocation);
Types types = definition.getTypes();
for (Object object : types.getExtensibilityElements()) {
Schema schema = (Schema) object;
if (schema.getImports().isEmpty()) {
schemaElement = schema.getElement();
} else {
for (Object value : schema.getImports().values()) {
for (Object si : ((List)value)) {
schemaElement = ((SchemaImport)si).getReferencedSchema().getElement();
}
}
}
}
} catch (WSDLException e) {
throw new ActivitiException(e.getMessage(), e);
}
return schemaElement;
}
05-07-2011 07:09 AM
05-09-2011 06:33 AM
05-09-2011 06:42 AM
05-09-2011 07:52 AM
05-09-2011 08:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.