
552
|
Chapter 30: The System.Web.Services Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
used programmatically by clients. For more information on XML qualified names, see
http://www.w3.org/TR/REC-xml-names.
You can also set a Description property, which contains information about your web
service that will be displayed in automatically generated description documents and
the Internet Explorer test page.
Hierarchy
System.Object ➝ System.Attribute ➝ WebServiceAttribute
Valid On
Class
WebServiceBindingAttribute
System.Web.Services (system.web.services.dll)
sealed class
This attribute is used to mark the class declaration of the proxy class that allows
communication between a client and a web service. It defines a Web Service Descrip-
tion Language (WSDL) binding. The Name and the Namespace properties must be set to
the name and XML namespace of the web service. These properties match the corre-
sponding properties in the WebServiceAttribute.
You must also use a System.Web.Services.Protocols.SoapDocumentMethodAttribute or System.Web.
Services.Protocols.SoapRpcMethodAttribute to describe the binding for each individual web
service method represented in the proxy class. This code is generated automatically in
the proxy class by adding a Visual Studio .NET web reference or using the WSDL.exe
utility included with ASP.NET.
Hierarchy ...