February 2003
Intermediate to advanced
752 pages
16h 35m
English
Actually creating an XML Web service class is easy, which is one of the reasons XML Web services have gained far more exposure than .NET Remoting. All you need to do is import the System.Web.Services namespace and add a <WebMethod> attribute to each method that you want to expose in the XML Web service.
<WebMethod()> _ Public Sub AddCustomer(ByVal customer As CustomerDetails) ’ (Code omitted.) End Sub
Optionally, you can set additional <WebMethod> properties to configure a text description for each Web method, which can help the client understand how your service works. You can also add a <WebService> attribute to your class declaration (although this isn’t strictly required) to set a description for the entire service ...