Unable to consume WSDL that have external XSD references
When attempting to import data mapping rules via XSD which contains another XSD reference, none of the import wizards are able to consume the file. The error messaage generated is: "WSDL Parser was unable to find any valid Service definitions in the document"
WSDL Parser was unable to find any valid Service definitions in the document.
Steps to Reproduce
- Launch Create Soap Integration Wizard in connectors by navigating through Designer Studio>Integretion>Connectors>Create SOAP Integration wizard.
- Use upload the WSDL via URL option.
- Input the URL to import the WSDL file.
- Supply the authentication params and hit Next to get the error message.
The root cause of the issue is identified as a defect in custom application code or rules.
The endpoint URL is missing from the WSDL file being imported. WSDL file without endpoint URL cannot be consumed by SOAP Integration wizard or Connector and Metadata accelerator although it might work with SOAP-UI.
Both SOAP Integration wizard and Connector and Metadata accelerator in PRPC requires a WSDL file to have reference to an endpoint URL for a successful import.
Following is a sample snippet for specifying endpoint URL in WSDL file:
<wsdl:port name="ServiceNameBinding" binding="tns:ServiceNameBinding">