SoapBindingUse Enumeration
.NET Framework 2.0
Specifies whether the message parts are encoded as abstract type definitions or concrete schema definitions.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
This enumeration applies to extensibility elements which specify that data transmissions use the SOAP protocol, and which are added to FaultBinding, InputBinding and OutputBinding instances.
For more information about specifying protocols for XML Web services, see XML Web Services Using ASP.NET. For more information about Web Services Description Language (WSDL), see the specification at http://www.w3.org/TR/wsdl/.
<%@ WebService Language="C#" Class="ShoppingCart" %> using System.Web.Services; using System.Web.Services.Protocols; using System.Web.Services.Description; using System; public class ShoppingCart { [ SoapDocumentMethod(Use=SoapBindingUse.Encoded) ] [ WebMethod] public void PlaceOrder(OrderItem O) { // Process the order on the back end. } } public class OrderItem { public int Count; public int Description; public DateTime OrderDate; public long CustomerID; public Decimal Cost; }
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.