I'm running into an issue w/ an external web service exposed via ESB/SOAPProxy. The returned root WSDL, includes a child WSDL (using wsdl:include) that defines the type/schema as well as other required elements.
The WSDL validates just fine in eclipse, soapui.
WSDL11Reader.java is failing while processing because it expects some those elements in the root WSDL file.
It ends up with a null pointer exception.
public WSDLDefinitions processDefinition(Definition srcWsdl, URL wsdlLoc) throws IOException, WSDLException
{
log.trace("processDefinition: " + wsdlLoc);
destWsdl = new WSDLDefinitions();
destWsdl.setWsdlTypes(new XSModelTypes());
destWsdl.setWsdlOneOneDefinition(srcWsdl);
destWsdl.setWsdlNamespace(Constants.NS_WSDL11);
processNamespaces(srcWsdl);
processTopLevelElements(srcWsdl);
processTypes(srcWsdl, wsdlLoc);
processUnknownExtensibilityElements(srcWsdl, destWsdl);
processServices(srcWsdl);
if (getAllDefinedBindings(srcWsdl).size() != destWsdl.getBindings().length)
processUnreachableBindings(srcWsdl);
cleanupTemporaryFiles();
return destWsdl;
}