SoapDocumentServiceAttribute.Use Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the default parameter formatting for an XML Web service.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public SoapBindingUse Use { get; set; }

Property Value

Type: System.Web.Services.Description.SoapBindingUse

The default SoapBindingUse for the XML Web service. If not set, the default is Literal.

The Web Services Description Language (WSDL) defines two formatting styles for parameters sent to and from XML Web services: Encoded and Literal. Encoded refers to formatting the parameters using the SOAP encoding outlined in the SOAP specification in section 5. Literal refers to formatting the parameters using a predefined XSD schema for each parameter.

For more details, see [<topic://cpconCustomizingSOAPInASPNETWebServicesWebServiceClients>].

.NET Framework
Available since 1.1

SoapDocumentServiceAttribute Class
System.Web.Services.Protocols Namespace

Return to top