1
Vote

Missing schemaLocation attribute for referenced/imported types

description

When getting a WSDL from a running asmx service, e.g. "http://localhost/MyService.asmx?WSDL" you get both a namespace import and a namespace + schemaLocation import.
...
<s:import namespace="MyNamespace"/>
<s:import namespace="MyNameSpace" schemaLocation="http://localhost/MyService.asmx?schema=MyType"/>
...
When generating the WSDL with WSDLGenerator.exe the line with the schemaLocation is missing and also the schema files(xsd) for the types.

Is this functionality you can include?

file attachments

comments

hennyj wrote Oct 12, 2016 at 7:41 AM

Hi, and thank you for this tool. :-)
I downloaded your code and implemented the requested functionality regarding missing schema information and I got it working for my scenario. The changed source is attached, so you can do a review and include it in standard WSDLGenerator if you like.