System.Web.Services.Protocols.HttpSimpleClientProtocol.Invoke Method

Invokes an XML Web service method using HTTP.

Syntax

protected object Invoke (string methodName, string requestUrl, object[] parameters)

Parameters

methodName
The name of the XML Web service method in the derived class that is invoking the HttpSimpleClientProtocol.Invoke(string, string, Object[]) method.
requestUrl
The URL of the XML Web service method that the client is requesting.
parameters
An array of objects containing the parameters to pass to the remote XML Web service. The order of the values in the array corresponds to the order of the parameters in the calling method of the derived class.

Returns

An array of objects containing the return value and any by-reference or out parameters of the derived class method.

Remarks

The methodName parameter is used to find the types of the parameters and return values of the method that is invoking the HttpSimpleClientProtocol.Invoke(string, string, Object[]) method. It is also used to find custom attributes which may have been added to the method. System.Web.Services.Protocols.HttpMethodAttribute and System.Xml.Serialization.XmlElementAttribute provide additional information on the derived method that is required for the SOAP protocol.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0