You need to sign in to do that
Don't have an account?
Jimmmy
remoteFunction Timeout not working!?
We are using the remoteFunction and we have set a timeout but it still defaults to the 10 second timeout?
Here is the code we are using.
sforce.connection.remoteFunction({ url : url,
timeout : 60000,
method: "POST",
requestData: template,
async: false,
requestHeaders: { "Content-Type": "text/xml","SOAPAction": https://www.ourwebsite.com},
onSuccess : function(response) { message = response;},
onFailure : function(error) { alert(error); }});
timeout : 60000,
method: "POST",
requestData: template,
async: false,
requestHeaders: { "Content-Type": "text/xml","SOAPAction": https://www.ourwebsite.com},
onSuccess : function(response) { message = response;},
onFailure : function(error) { alert(error); }});
we pass in XML and retrieve XML as a response. It works great until we have a larger sized XML
being sent and then we run into issues. The server is receiving the data and the remoteFunction
is not paying attention to the timeout call. So we get
<html>
<head><title>400 Unable to forward request due to: Read timed out</title></head>
<body>
<h1>400 Unable to forward request due to: Read timed out</h1>
<p /><hr />
<small>
Resin-3.0.12 (built Wed, 23 Feb 2005 10:29:38 PST)
</small>
</body></html>
<head><title>400 Unable to forward request due to: Read timed out</title></head>
<body>
<h1>400 Unable to forward request due to: Read timed out</h1>
<p /><hr />
<small>
Resin-3.0.12 (built Wed, 23 Feb 2005 10:29:38 PST)
</small>
</body></html>
Does anybody have any ideas or know of any work a rounds... Any help will be greatly appreacheated.
If you have large requests, simply set the HTTP header "Range" and hope that the server you are talking to will resepct that header and give you only what you asked for.
Note:the max size is 32K for a response string that you can use, otherwise you get an exception.
how much data are you looking for ?