ClrObjectFactory.CreateFromWsdl(String, String) Method

Definition

Activates a remote assembly through .NET remoting, using the Web Services Description Language (WSDL) of the XML Web service.

public:
 virtual System::Object ^ CreateFromWsdl(System::String ^ WsdlUrl, System::String ^ Mode);
public object CreateFromWsdl (string WsdlUrl, string Mode);
abstract member CreateFromWsdl : string * string -> obj
override this.CreateFromWsdl : string * string -> obj
Public Function CreateFromWsdl (WsdlUrl As String, Mode As String) As Object

Parameters

WsdlUrl
String

The WSDL URL of the Web service.

Mode
String

Not used.

Returns

An instance of the Object representing the type, with culture, arguments, and binding and activation attributes set to null, or null if the assembly identified by the WsdlUrl parameter is not found.

Implements

Exceptions

A caller in the call chain does not have permission to access unmanaged code.

The thread token could not be opened.

Remarks

Processes the WSDL passed in and, if necessary, generates a proxy, then activates the remote object.

The version of SOAP used by .NET remoting is RPC/encoded, not document/literal, which is required for SOAP interoperability. Therefore, CreateFromWsdl will not work with most ASMX Web services.

CreateFromWsdl requires administrative privileges on the local computer the first time it is run, because it creates and installs a client proxy for communication with the remote assembly.

Applies to