JavaScript EditorJavascript debugger     Javascript examples


Team LiB
Previous Section Next Section

Chapter 11 Quick Reference

To

Do this

Create an XML-based Web service using ASP.NET

In Visual Studio .NET, create a new ASP.NET Web Service project. Visual Studio .NET will create the application in IIS and create a default Web service file with an .asmx extension.

Test a Web service

Browse the .asmx file containing the Web service from a Web browser. ASP.NET will generate documentation pages for the Web service, as well as allowing you to invoke the Web service.

Change the default namespace of a Web service

Add or modify the WebService attribute, adding a Namespace?“<new URL> parameter.

Advertise a Web service

Either create a discovery document for your Web services and publish the document to a public location, such as your organization’s Web site, or register your Web services in one of the publicly available UDDI business registries, making sure to provide the URL to the WSDL contract for each Web service you register.

Consume a Web service from ASP.NET

Use the wsdl.exe utility to create a proxy class based on the WSDL contract for the Web service, compile the proxy class, and instantiate the proxy class from your client application as you would any other .NET class. Alternatively, simply right-click on the project root in Visual Studio .NET, click Add Web Reference on the drop-down menu, and then enter a URL. If the URL is recognized and the methods available are displayed, click Add Reference.


Team LiB
Previous Section Next Section


JavaScript EditorJavascript debugger     Javascript examples