There isn’t a magic bullet solution for what you’re looking for, unfortunately. Here’s what you can do:
-
create an Interface class using this command in the Visual Studio Command Prompt window:
wsdl.exe yourFile.wsdl /l:CS /serverInterface
Use VB or CS for your language of choice. This will create a new.cs
or.vb
file. -
Create a new .NET Web Service project. Import Existing File into your project – the file that was created in the step above.
-
In your
.asmx.cs
file in Code-View, modify your class as such:
public class MyWebService : System.Web.Services.WebService, IMyWsdlInterface
{
[WebMethod]
public string GetSomeString()
{
//you'll have to write your own business logic
return "Hello SOAP World";
}
}