How to Create the listener service for SOAP messages in C#
-
There isn't too much to it. Here is a small sample class. It should be named something like WebServiceListner.asmx Hope this gets you started. Hogan
using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; /// /// Summary description for Class1 /// public class Class1 { [WebService(Namespace = "http://your.url.here.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Class1: System.Web.Services.WebService { [WebMethod] public string WebServiceMethod(string xmlData) { //Do some goodness here. return ""; } } }
-
There isn't too much to it. Here is a small sample class. It should be named something like WebServiceListner.asmx Hope this gets you started. Hogan
using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; /// /// Summary description for Class1 /// public class Class1 { [WebService(Namespace = "http://your.url.here.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Class1: System.Web.Services.WebService { [WebMethod] public string WebServiceMethod(string xmlData) { //Do some goodness here. return ""; } } }