Szerkesztés

Megosztás a következőn keresztül:


UrlEncodedParameterWriter Class

Definition

Provides URL encoding functionality for writers of out-going request parameters for Web service clients implemented using HTTP but without SOAP.

public ref class UrlEncodedParameterWriter abstract : System::Web::Services::Protocols::MimeParameterWriter
public abstract class UrlEncodedParameterWriter : System.Web.Services.Protocols.MimeParameterWriter
type UrlEncodedParameterWriter = class
    inherit MimeParameterWriter
Public MustInherit Class UrlEncodedParameterWriter
Inherits MimeParameterWriter
Inheritance
UrlEncodedParameterWriter
Derived

Remarks

UrlEncodedParameterWriter and other classes in the System.Web.Services.Protocols namespace support the .NET Framework's implementations of Web services via the HTTP-GET and HTTP-POST operations. Web service writers and readers serialize and deserialize, respectively, between the parameters or return objects of Web methods and the HTTP request or response streams. Web service writers and readers use HTTP for transport but don't exchange messages using the SOAP standard.

The abstract UrlEncodedParameterWriter class inherits from the abstract MimeParameterWriter class, adding URL encoding functionality for client-side writing of Web method parameters into HTTP request streams.

You typically will not need to use UrlEncodedParameterWriter or its descendant classes directly. Instead, when the Wsdl.exe tool generates client proxy code according to the HTTP-GET or HTTP-POST implementations, it applies the HttpMethodAttribute to each Web method and sets the attribute's ParameterFormatter property to the appropriate type.

Note

The Hypertext Transfer Protocol--HTTP/1.1 specifies the use of a variation on Multipurpose Internet Mail Extensions (MIME) message format, which itself allows email messages to specify different content types, both text and binary.

Constructors

UrlEncodedParameterWriter()

Initializes a new instance of the UrlEncodedParameterWriter class.

Properties

RequestEncoding

Gets or sets the encoding used to write parameters to the HTTP request.

UsesWriteRequest

Gets a value that indicates whether Web method parameter values are serialized to the out-going HTTP request body.

(Inherited from MimeParameterWriter)

Methods

Encode(TextWriter, Object[])

Encodes all the parameter values for a Web method and writes them to the specified writer.

Encode(TextWriter, String, Object)

Encodes a specified parameter value and writes it to the specified writer.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetInitializer(LogicalMethodInfo)

Returns an initializer for the specified method.

GetInitializers(LogicalMethodInfo[])

When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.

(Inherited from MimeFormatter)
GetRequestUrl(String, Object[])

When overridden in a derived class, modifies the outgoing HTTP request's Uniform Request Locator (URL).

(Inherited from MimeParameterWriter)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(Object)

Initializes an instance.

InitializeRequest(WebRequest, Object[])

When overridden in a derived class, initializes the out-going HTTP request.

(Inherited from MimeParameterWriter)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteRequest(Stream, Object[])

When overridden in a derived class, serializes Web method parameter values into a stream representing the outgoing HTTP request body.

(Inherited from MimeParameterWriter)

Applies to

See also