I recently broke a scope-creeping app into modules, and now the HTTPServices in those modules do not return complete data from server-side scripts outputting XML the first time they are run. It appears as though the result handlers can only see three layers deep into the XML. Any subsequent runs of the HTTPService work properly.
The only thing that has changed with the code is moving the HTTPServices parent components into Modules. The debugger shows the exact same thing as the result handlers - they don't see any children below the third level. Is there a limit on how deep Modules can see data?
For example, the XML output from the server looks like:
But the result handler produces this:
I've discovered a little more about the problem. When the data is coming from a file in the same directory, like file.xml, it functions properly the first time around. It's only when going to the actual servlet providing the data that there's a problem reading in the whole thing.