Show / Hide Table of Contents

Class CSHTML5_ClientBase<TChannel>.WebMethodsCaller

Provides an API to call web methods defined in a WebService

Inheritance
System.Object
CSHTML5_ClientBase<TChannel>.WebMethodsCaller
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.ServiceModel
Assembly: OpenSilver.dll
Syntax
public class WebMethodsCaller

Constructors

| Improve this Doc View Source

WebMethodsCaller(String)

Constructor for the WebMethodsCaller's class

Declaration
public WebMethodsCaller(string addressOfService)
Parameters
Type Name Description
System.String addressOfService

The address of the WebService

Methods

| Improve this Doc View Source

BeginCallWebMethod(String, Type, Type, IDictionary<String, Object>, Action<String>, String)

Declaration
public void BeginCallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, IDictionary<string, object> originalRequestObject, Action<string> callback, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.Type methodReturnType
System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject
System.Action<System.String> callback
System.String soapVersion
| Improve this Doc View Source

BeginCallWebMethod(String, Type, Type, IEnumerable<MessageHeader>, IDictionary<String, Object>, Action<String>, String)

Declaration
public void BeginCallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, IEnumerable<MessageHeader> outgoingMessageHeaders, IDictionary<string, object> originalRequestObject, Action<string> callback, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.Type methodReturnType
System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.MessageHeader> outgoingMessageHeaders
System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject
System.Action<System.String> callback
System.String soapVersion
| Improve this Doc View Source

BeginCallWebMethod(String, Type, Type, IReadOnlyList<Type>, String, IDictionary<String, Object>, Action<String>, String)

Declaration
public void BeginCallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, IReadOnlyList<Type> knownTypes, string messageHeaders, IDictionary<string, object> originalRequestObject, Action<string> callback, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.Type methodReturnType
System.Collections.Generic.IReadOnlyList<System.Type> knownTypes
System.String messageHeaders
System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject
System.Action<System.String> callback
System.String soapVersion
| Improve this Doc View Source

BeginCallWebMethod(String, Type, Type, String, IDictionary<String, Object>, Action<String>, String)

Declaration
public void BeginCallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, string messageHeaders, IDictionary<string, object> originalRequestObject, Action<string> callback, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.Type methodReturnType
System.String messageHeaders
System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject
System.Action<System.String> callback
System.String soapVersion
| Improve this Doc View Source

CallWebMethod(String, Type, Type, IDictionary<String, Object>, String)

Calls a WebMethod

Declaration
public object CallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, IDictionary<string, object> originalRequestObject, string soapVersion)
Parameters
Type Name Description
System.String webMethodName

The name of the Method

System.Type interfaceType

The Type of the interface

System.Type methodReturnType

The return Type of the method

System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject

The additional arguments of the method

System.String soapVersion

The SOAP Version of the request

Returns
Type Description
System.Object

The result of the call of the method.

| Improve this Doc View Source

CallWebMethod(String, Type, Type, IEnumerable<MessageHeader>, IDictionary<String, Object>, String)

Calls a WebMethod

Declaration
public (object, MessageHeaders) CallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, IEnumerable<MessageHeader> outgoingMessageHeaders, IDictionary<string, object> originalRequestObject, string soapVersion)
Parameters
Type Name Description
System.String webMethodName

The name of the Method

System.Type interfaceType

The Type of the interface

System.Type methodReturnType

The return Type of the method

System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.MessageHeader> outgoingMessageHeaders

The outgoing message headers

System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject

The additional arguments of the method

System.String soapVersion

The SOAP Version of the request

Returns
Type Description
System.ValueTuple<System.Object, System.ServiceModel.Channels.MessageHeaders>

The result of the call of the method and the incoming message headers.

| Improve this Doc View Source

CallWebMethodAsync<T>(String, Type, Type, IDictionary<String, Object>, String)

Asynchronously calls a WebMethod.

Declaration
public Task<T> CallWebMethodAsync<T>(string webMethodName, Type interfaceType, Type methodReturnType, IDictionary<string, object> originalRequestObject, string soapVersion)
Parameters
Type Name Description
System.String webMethodName

The name of the WebMethod

System.Type interfaceType

The Type of the interface

System.Type methodReturnType

The return Type of the method

System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject

The additional arguments of the method

System.String soapVersion

The SOAP Version of the request

Returns
Type Description
System.Threading.Tasks.Task<T>

The result of the call of the method.

Type Parameters
Name Description
T

The return type of the WebMethod

| Improve this Doc View Source

CallWebMethodAsync<T>(String, Type, Type, IEnumerable<MessageHeader>, IDictionary<String, Object>, String)

Asynchronously calls a WebMethod.

Declaration
public Task<(T, MessageHeaders)> CallWebMethodAsync<T>(string webMethodName, Type interfaceType, Type methodReturnType, IEnumerable<MessageHeader> outgoingMessageHeaders, IDictionary<string, object> originalRequestObject, string soapVersion)
Parameters
Type Name Description
System.String webMethodName

The name of the WebMethod

System.Type interfaceType

The Type of the interface

System.Type methodReturnType

The return Type of the method

System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.MessageHeader> outgoingMessageHeaders

The outgoing message headers

System.Collections.Generic.IDictionary<System.String, System.Object> originalRequestObject

The additional arguments of the method

System.String soapVersion

The SOAP Version of the request

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<T, System.ServiceModel.Channels.MessageHeaders>>

The result of the call of the method and the incoming message headers.

Type Parameters
Name Description
T

The return type of the WebMethod

| Improve this Doc View Source

EndCallWebMethod(String, Type, Type, IReadOnlyList<Type>, String, String)

Declaration
public object EndCallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, IReadOnlyList<Type> knownTypes, string xmlReturnedFromTheServer, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.Type methodReturnType
System.Collections.Generic.IReadOnlyList<System.Type> knownTypes
System.String xmlReturnedFromTheServer
System.String soapVersion
Returns
Type Description
System.Object
| Improve this Doc View Source

EndCallWebMethod(String, Type, Type, String, String)

Declaration
public object EndCallWebMethod(string webMethodName, Type interfaceType, Type methodReturnType, string xmlReturnedFromTheServer, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.Type methodReturnType
System.String xmlReturnedFromTheServer
System.String soapVersion
Returns
Type Description
System.Object
| Improve this Doc View Source

EndCallWebMethod<RETURN_TYPE>(String, Type, String, String)

Declaration
public RETURN_TYPE EndCallWebMethod<RETURN_TYPE>(string webMethodName, Type interfaceType, string xmlReturnedFromTheServer, string soapVersion)
Parameters
Type Name Description
System.String webMethodName
System.Type interfaceType
System.String xmlReturnedFromTheServer
System.String soapVersion
Returns
Type Description
RETURN_TYPE
Type Parameters
Name Description
RETURN_TYPE
  • Improve this Doc
  • View Source