WebProxyClient<TService>.CreateServiceEndpoint Method (Uri, Boolean, TimeSpan, Assembly)


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Creates the service endpoint required for the proxy and adds support for early-bound types in the provided assembly.

Namespace:   Microsoft.Xrm.Sdk.WebServiceClient
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

protected static ServiceEndpoint CreateServiceEndpoint(
	Uri serviceUrl,
	bool useStrongTypes,
	TimeSpan timeout,
	Assembly strongTypeAssembly


Type: System.Uri

Type: URI. The URL of the web service.

Type: System.Boolean

Type: Boolean. When true, use early-bound types; otherwise, false.

Type: System.TimeSpan

Type: TimeSpan. The maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding.

Type: System.Reflection.Assembly

Type: Assembly. An assembly containing early-bound types.

Return Value

Type: System.ServiceModel.Description.ServiceEndpoint

Type: ServiceEndpoint
A web service endpoint.

The timeout is passed to the SendTimeout, ReceiveTimeout, and OpenTimeout properties on the WCF channel binding.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright