SoapBindingUse Enumeration

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

Public Enumeration SoapBindingUse
Dim instance As SoapBindingUse

public enum SoapBindingUse
public enum SoapBindingUse

 Member nameDescription
Supported by the .NET Compact FrameworkDefaultSpecifies an empty string ("") value for the corresponding XML use attribute. 
Supported by the .NET Compact FrameworkEncodedThe message parts are encoded using given encoding rules. 
Supported by the .NET Compact FrameworkLiteralThe message parts represent a concrete schema. 

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

<%@ WebService Language="VB" Class="ShoppingCart" %>
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Web.Services.Description
Imports System

Public Class ShoppingCart
    ' Specify that the XML Web service method uses encoded SOAP messages.
    <SoapDocumentMethod(Use:=SoapBindingUse.Encoded), _
     WebMethod()> _
    Public Sub PlaceOrder(O as OrderItem)
        ' Process the order on the back end.
    End Sub
End Class

Public Class OrderItem
  Public Count As Integer
  Public Description as String
  Public OrderDate as DateTime
  Public CustomerID as Long
  Public Cost as Decimal

End Class

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions