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

How to parse response from remoteFunction() and request timeout 400 code

Hi all,


I'm working with the remoteFunction() to make a GET call to an external webservice. The service returns an XML back and I was wondering if the Ajax toolkit contains any functions to parse the XML response. This is how I'm making the GET call:



url : "my_http_request_link_w_querystring",
requestHeaders: {
"Content-Type": "text/xml",
mimeType: "text/xml",
method: "GET",
onSuccess : function(response) {
onFailure : function(response) {
alert("Problem with REST call w/ response = " +



 Thanks in advance.



Message Edited by J&A-Dev on 07-29-2009 07:30 AM
Actually, I see that it is not going to be too bad to handle with Javascript, so I'm just going to do that :smileyhappy:

Quick question: using the remoteFunction(), I'm able to make the GET request fine to a site like Google Maps and amazon, but I'm getting the following error when I make a GET call to a webserver on port 8080:



400 Unable to forward request due to: Read timed out


 What could be causing the timeout? I can make the request just fine to the mentioned webserver by directly hitting the URL and I get the XML as expected then.



Xml parsing is pretty simple using the built in XML libraries. Good article here.


As for the timeout, the port may are may not be supported by the toolkit.  I would step through the remoteFunction call in a debugger to see exactly what was happening.