function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vinod kumar 164vinod kumar 164 

The underlying connection was closed: An unexpected error occurred on a receive using SOAP Api

As we are new to the salesforce and we are implementing to integrate the data to our App using Enterprise Web Services WSDL(SOAP API).
And we have Generated Enterprise Web Services WSDL and converted into proxy class and added to our windows service solution in .net.
But when we try to authenticate the salesforce using windows service we are getting exception that is 

"The underlying connection was closed: An unexpected error occurred on a receive."

And our question is can we work with window service solution using Enterprise Web Services WSDL (SOAP API) to integrate data to our App from salesforce. And if we can work with window service then what is the fault we are doing to authenticate with Salesforce. so please let us know the solution.


Hey Vinod, As long as your application can call SOAP based web services, you should be able to call salesforce from your application. Few things to check - 
1. Test with SOAP UI Tool once.
2. I am not sure 100% sure thought, Error might be due to proxy settings. 
Daniel BallingerDaniel Ballinger
Adding a service reference in .NET will typically add entries in the web.config with the URL to locate the web service at.

What URL are you sending the requests to? 
Are you using sandbox or production/developer edition orgs?
What API version are the org or orgs on? 

It should be either or initially. Note that API version here is 35.0, which is the Winter `16 release. You won't be able to use the Spring `16 36.0 url if the target org isn't on that release yet.
vinod kumar 164vinod kumar 164
We are trying to authenticate the sales force through windows service.
We are sending url request "" 
and we are working with developer edition with API version 35.0

We would like to know  is it able to work with window service in dotnet using Soap Api by creating wsdl to proxy class.Please let us know the solution.And also let us know why we are getting exception while authenicating salesforce with window service.