Create an ASMX web service from a WSDL file
Solution 1:
If you already created interfaces you need to implement those interfaces.
Just create a new web service and add the interface that you generated so that it inherits from that interface. Visual Studio can automatically generate stubs for every method in interface. Mark them with the WebMethod attribute and put some code in that will return some test data/results.
If you have this interface (with some more attributes that were automatically generated):
public interface IRealWebService
{
string GetName();
}
You should make a new service:
public class WebTestService : System.Web.Services.WebService, IRealWebService
{
#region IRealWebService Members
[WebMethod]
public string GetName()
{
return "It Works !!!!";
}
#endregion
}
Solution 2:
All you need to do is create a class that inherits from the interface that WSDL.EXE has generated, and then implement the methods from the interface.