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
squarewavesquarewave 

timeout while logging into salesfroce api from a web app

I have no problems connecting to salesforce api from a console app.

however, when I execute the same call from a web project, it hangs and times out on this line:

    Svc.login(_username, _password + _token);

where Svc is

    SFDC2.SforceService : System.Web.Services.Protocols.SoapHttpClientProtocol

again, this same code is used no problem from a console app within the same solution

i am connecting using a web reference, based on a the generated WSDL from salesfroce.com admin screen.

there is a hidden exception

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Best Answer chosen by squarewave
squarewavesquarewave
it was an issue with firewall, but still not sure why the calls worked from console but not from web project. however after opening the firewall more all calls are working. 

All Answers

Wade WegnerWade Wegner
Can you use a tool like Fiddler to try and capture the full request & response? Sharing the raw request & response would be extremely helpful.
squarewavesquarewave
it was an issue with firewall, but still not sure why the calls worked from console but not from web project. however after opening the firewall more all calls are working. 
This was selected as the best answer
Wade WegnerWade Wegner
Glad to hear it's resolved. Best, Wade