You could take a detour and somehow build a COM DLL or a type library
from the IDL.
With the type library you could either generate a COM DLL using the
Implement Interface option from the Class View in unmanaged C++. Then
compile the project and extract the WSDL using the WSDL Generator from
the SOAP Toolkit, which you should find for download on the Microsoft
web site. You find documentation on how to use the tool in the SOAP
Toolkit documentation.
You could also try to compile the IDL into a type library using
midl.exe, then create a .NET interop assembly with tlbimp.exe. Then
create a new ASP.NET Web service in Web service, reference the interop
assembly, implement the interfaces from the interop assembly in the web
service class. Visual Studio should generate the methods on the
interface for you. Then mark the generated methods with the [WebMethod]
attribute, compile your project and now you can get the WSDL by querying
the service URL with the ?wsdl URL, but at that point you already have
services.
Finally, the Christian Weyer's contract first tool [0] does a better job
than wsdl.exe at generating code for web services from WSDL.
HTH and I'd be curious to hear how you solved your problem.
Christoph Schittko
MS MVP XML
http://weblogs.asp.net/cschittko -----Original Message-----
From: Camilla [mailto:vi****@hotmail.com]
Posted At: Friday, November 26, 2004 9:15 AM
Posted To: microsoft.public.dotnet.xml
Conversation: Have idl and sdl - need wsdl....
Subject: Have idl and sdl - need wsdl....
I'm making one of my first web services (with C#) and need help
getting started.
I have received an idl file and a sdl file that describes the
interface I need to implement... but how do I generate anything from
these files? It seems like I have to convert one of the files to a
wsdl file and then use wsdl.exe??
Thanks for your help!
(I wont be back to reed your answer until monday...so no hurry! :-)