Are you trying to generate a CS proxy for a WSDL which maybe imports another WSDL which in turn maybe imports a XML Schema and so on? (e.g. MyServiceConcrete.wsdl -> MyServiceAbstract.wsdl -> MyServiceSchema.xsd).
I come from the Java world, so the natural way for me would be:
wsdl.exe MyServiceConcrete.wsdl
But...crash
Microsoft (R) Web Services Description Language Utility
Microsoft (R) .NET Framework, Version ...]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Cannot find definition for ... EndpointInterface. Service Description with namespace ... is missing.
Parameter name: name
If you would like more help, please type "wsdl /?".
And for example, Java's wsimport works like a charm:
wsimport.exe MyServiceConcrete.wsdl
The problem is wsdl.exe doesn't resolve import's (neither xsd.exe)
So just feed wsdl.exe with all the required dependencies (WSDLs, XSDs...).
wsimport.exe MyServiceConcrete.wsdl MyServiceAbstract.wsdl MyServiceSchema.xsd
In the above example, all files have to be in the same directory.
Profit.
No hay comentarios:
Publicar un comentario