Invokes a method of a HTTP web service.
[Visual Basic] Protected Function Invoke( _ ByVal methodName As String, _ ByVal url As String, _ ByVal parameters() As Object _ ) As Object [C#] protected object Invoke( string methodName, string url, object[] parameters ); [C++] protected: Object* Invoke( String* methodName, String* url, Object* parameters[] ); [JScript] protected function Invoke( methodName : String, url : String, parameters : Object[] ) : Object;
An array of objects containing the return value and any by-reference or out parameters of the derived class method.
Exception Type | Condition |
---|---|
Exception | The request reached the server machine, but was not processed successfully. |
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, System.Web.Services.Protocols.HttpParameterAttribute, and System.Web.Services.Protocols.HttpReturnAttribute provide additional information on the derived method which is required for the SOAP protocol.
HttpClientProtocol Class | HttpClientProtocol Members | System.Web.Services.Protocols Namespace