O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Web Service

So much for all the theory. How does this work in practice? The obvious thing to do next is to create a simple Web service and see how it works.

A Simple Web Service

An ASP.NET-based Web service is defined in an ASMX file. This file is similar to the ASPX files found in ASP.NET Web applications in that it can contain a mixture of ASP.NET directives (embedded in <%@ %> tags) and executable code. The main difference between an ASMX file and an ASPX file is that the ASMX file is not intended to contain any static markup. (An ASPX file will usually contain HTML as well as code.) This means that the whole ASMX file, excluding the directives, will be treated as executable code, so you do not have to enclose it in code render blocks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required