
Spring.NET is a .NET port of the popular Java Spring framework. It simplifies implementation and maintenance of large applications by:
One of the tasks that moves application setup from the actual code to the configuration file is the web service exporter. In the traditional .NET world, ASMX webservices are created by decorating the class and methods you want to expose with specific attributes. Here is the standard Hello World example of a traditional ASMX Web Service:
using System; using System.Data; using System.Web; using System.Collections; using System.Web.Services; using System.Web.Services.Protocols; using System.ComponentModel; namespace Qat.Demo { /// /// Your basic Hello-World Service as generated by Visual Studio. /// [WebService(Namespace = "http://QAT/services/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class TestService2 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } } }
If it is that simple, what advantages does the Spring.NET Web Service Exporter have? Two important reasons:
Stay tuned for details on how to export an object as a web service using Spring.NET.
Anke
Written by: Anke Doerfel-Parker |
Connect with us: