HttpMethodAttribute.ReturnFormatter Property

 

Gets or sets a Type that deserializes the response from an XML Web service method.

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

member ReturnFormatter : Type with get, set

Property Value

Type: System.Type

A Type that deserializes the response from an XML Web service method. There is no default.

If the XML Web service client is invoking an XML Web service method using HTTP-GET, ReturnFormatter must be UrlParameterWriter, whereas a client using HTTP-POST must set ReturnFormatter to HtmlFormParameterWriter.

The example is a proxy class generated by the Wsdl.exe utility for an XML Web service client using HTTP-GET, setting ReturnFormatter to the required value of UrlParameterWriter.

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

.NET Framework
Available since 1.1
Return to top
Show: