Hi,
I would like to create a WebService in .Net who expose multiple WebMethods
I need a WebService version per new implementation (WebMethod or New Property in Business Object), like this :
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
[WebMethod]
[WebServiceVersion("1.0")]
public string HelloWorld()
{
return "Hello World";
}
[WebMethod]
[WebServiceVersion("1.1")]
public string NewMethodInVersion1_1()
{
return "Hello World";
}
}
With UrlRewriting or HttpHandler :
HelloWorld WebMethod only : http://localhost/Service/1.0/Service.asmx
HelloWorld WebMethod and NewMethodInVersion1_1 : http://localhost/Service/1.1/Service.asmx
How can i generate a wsdl dynamically for the specific version used by the customer ?