Creating a Simple XML Web Service

Although the Web Service you create in this section is really simple, it shows off many of the issues you'll face when creating any Web Service, and its simplicity makes it a good example to get you started.

Follow these steps to create your first XML Web Service:

1.
In Visual Studio .NET, create a new project. Select ASP.NET Web Service from the list of project templates.
2.
Set the location of your service to http://localhost/Jumpstart/MathService. Click OK to create the project.
3.
By default, the Web Service project template creates a component named Service1.asmx. Find this component in the Solution Explorer window and rename it to Adding.asmx.

NOTE

If you double-click Adding.asmx to display it in the ...

Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.