SoapDocumentMethodAttribute.Use Property

Gets or sets the parameter formatting for an XML Web service method within the XML portion of a SOAP message.

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

public:
property SoapBindingUse Use {
	SoapBindingUse get ();
	void set (SoapBindingUse value);
}
/** @property */
public SoapBindingUse get_Use ()

/** @property */
public void set_Use (SoapBindingUse value)

public function get Use () : SoapBindingUse

public function set Use (value : SoapBindingUse)

Not applicable.

Property Value

The SoapBindingUse for the XML Web service method. The default is Literal.

The Web Services Description Language (WSDL) defines two methods for formatting parameters: Encoded and Literal. Encoded refers to formatting parameters using SOAP encoding, as outlined in the SOAP specification in section 5. Literal refers to formatting the parameters using a pre-defined XSD schema for each parameter.

For more details, see Customizing SOAP Message Formatting.

The following code example specifies that Document / Encoded SOAP messages must be sent to the PlaceOrder XML Web service method.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, 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

ADD
Show: