Skip to main content

Hi everbody,

I am using a SalesForce sandbox to develop a 3rd party app, which search for contacts. I am using C⌗ within Visual Studio and create a Connected Service with the enterprise.wsdl.

The code looks like:

System.ServiceModel.BasicHttpBinding endpointBinding = new System.ServiceModel.BasicHttpBinding();

            endpointBinding.MaxBufferSize = int.MaxValue;

            endpointBinding.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;

            endpointBinding.MaxReceivedMessageSize = int.MaxValue;

            endpointBinding.AllowCookies = true;

            endpointBinding.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;

            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

            // Create a SoapClient specifically for logging in

            loginClient = new SoapClient(endpointBinding, new EndpointAddress(LoginEndpointAddress));

            Stopwatch stopwatch = Stopwatch.StartNew();

The request takes more than one minute to get a response. Any idea whats wrong?

Regards

Gerd
1 risposta
  1. 5 mar 2022, 12:15
    HI Gred,

    This does not look like a salesforce side issue. You can reach out on https://stackoverflow.com/questions/tagged/basichttpbinding+performance for right visibility and inputs on your ask.

    Additionally, it would not be possible to suggest without deeper debugging. I came across this post that might help get started https://stackoverflow.com/questions/10859832/why-is-the-first-wcf-client-call-slow

    If this information helps, please mark the answer as best. Thank you