.NET Web Services Programming Language Support
Web services can be developed in any programming language supported by .NET. Out-of-the-box it includes Visual C#, Visual Basic .NET, Visual J#, and Managed C++. In the following sections, you'll take a look at how Web services can be developed in other .NET supported programming languages.
Using Visual Basic .NET
<%@ WebService Language="VB" Class="hks.HelloService"%> Imports System.Web.Services Namespace hks <WebService(Namespace:="http://www.hitehseth.com/WebServices")> _ Public Class HelloService <WebMethod(Description:="Simple Hello Method")> _ Public Function sayHello() as String Return "Returned from a Visual Basic.NET Web Service" End Function End Class End Namespace
Using Visual J#
<%@ ...
Get Microsoft® .NET Kick Start 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.