Skip to Content
Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting
book

Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting

by Matthew MacDonald
February 2003
Intermediate to advanced
752 pages
16h 35m
English
Microsoft Press
Content preview from Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting

Creating an XML Web Service

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied SOAP: Implementing .NET XML Web Services

Applied SOAP: Implementing .NET XML Web Services

Kenn Scribner, Mark Stiver
Microsoft® .NET Remoting

Microsoft® .NET Remoting

Scott McLean, James Naftel, Kim Williams
.NET & XML

.NET & XML

Niel M. Bornstein

Publisher Resources

ISBN: 0735619336Catalog PageErrata