Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpSimpleClientProtocol.Invoke Method

Invokes an XML Web service method using HTTP.

[Visual Basic]
Protected Function Invoke( _
   ByVal methodName As String, _
   ByVal requestUrl As String, _
   ByVal parameters() As Object _
) As Object
[C#]
protected object Invoke(
 string methodName,
 string requestUrl,
 object[] parameters
);
[C++]
protected: Object* Invoke(
 String* methodName,
 String* requestUrl,
 Object* parameters __gc[]
);
[JScript]
protected function Invoke(
   methodName : String,
 requestUrl : String,
 parameters : Object[]
) : Object;

Parameters

methodName
The name of the XML Web service method in the derived class that is invoking Invoke.
requestUrl
The URL of the XML Web service method 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 correspond to the order of the parameters in the calling method of the derived class.

Return Value

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

Exceptions

Exception Type Condition
Exception The request reached the server computer, but was not processed successfully.

Remarks

The methodName is used to find the types of the parameters and return values of the method that is invoking Invoke. It is also used to find custom attributes which may have been added to the method. HttpMethodAttribute and XmlElementAttribute provide additional information on the derived method which is required for the SOAP protocol.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HttpSimpleClientProtocol Class | HttpSimpleClientProtocol Members | System.Web.Services.Protocols Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.