Export (0) Print
Expand All

System.Web.Services Namespace

The System.Web.Services namespace consists of the classes that enable you to create XML Web services using ASP.NET and XML Web service clients. XML Web services are applications that provide the ability to exchange messages in a loosely coupled environment using standard protocols such as HTTP, XML, XSD, SOAP, and WSDL. XML Web services enable the building of modular applications within and across companies in heterogeneous environments making them interoperable with a broad variety of implementations, platforms and devices. The SOAP-based XML messages of these applications can have well-defined (structured and typed), or loosely defined parts (using arbitrary XML). The ability of the messages to evolve over time without breaking the protocol is fundamental to the flexibility and robustness of XML Web services as a building block for the future of the Web.

To get started creating XML Web services using ASP.NET, look at the WebService class, which XML Web services can derive from to get access to the ASP.NET intrinsics and the WebMethodAttribute class, which must be placed on any method that you want to programmatically expose over the Web.

Namespace hierarchy

Classes

Class Description
WebMethodAttribute Adding this attribute to a method within an XML Web service created using ASP.NET makes the method callable from remote Web clients. This class cannot be inherited.
WebService Defines the optional base class for XML Web services, which provides direct access to common ASP.NET objects, such as application and session state.
WebServiceAttribute Used to add additional information to an XML Web service, such as a string describing its functionality.
WebServiceBindingAttribute Declares the binding one or more XML Web service methods implemented within the class implementing the XML Web service. This class cannot be inherited.

See Also

.NET Framework Class Library

Show:
© 2014 Microsoft