+ Start a Discussion
john2john2 

Re: Web services

while i am getting the response from web serivces

 

IO Exception: Read timed out
 

An unexpected error has occurred. Your development organization has been notified.

 

can somebody help me in this??

 

thank you

MandyKoolMandyKool

Hi,

 

Its will be better if you are able to show the Debug log here.

You will get the Debug Log on your email id that you have provided for the user which you are using for Login.

 

Also, check if your'e web service is returning a data which is more than 1 MB.

Hope, this will help.

 

Thanks,

Kulkarni.

Pradeep_NavatarPradeep_Navatar

It seems that listner is not responding in time. You need to set a timeout on your callout and add error handling with a try catch :

 

HttpRequest req = new HttpRequest();
req.setTimeout(2000); // timeout in milliseconds

 

Refer the link for more information :  http://wiki.developerforce.com/index.php/Apex_Web_Services_and_Callouts

 

Hope this helps.

 

 

HttpRequest req = new HttpRequest();
req.setTimeout(2000); // timeout in milliseconds