I’m using flex to consume xml output by an OpenAgent
https://www.TEST.com/TEST.nsf/aData?OpenAgent
This agent will return allot of data. My problem is that it sometimes doesn’t render the XML appropriately. It will print plain text, not in XML format. Then other times it will.
Is there a maximum on the amount of information that can be print ?
Is there some sort of timeout ? If an OpenAgent doesn’t finish in a certain amount of time, does the agent just stop ?
Thanks in advance
Subject: Resolved
The problem was caused by a coding error. A random Print statement was left in the code. It would only print under a certain situation, that’s why it was so random.
Subject: Example
Instead of rendering the XML like this:
Net 45
Net 30
Net 21
Net 15
Net 14
Net 10
Net 7
Due On Receipt
It will render it like this:
Net 45 Net 30 Net 21 Net 15 Net 14 Net 10 Net 7 Due On Receipt
Subject: Do you have these statements in your agent?
Print |Content-type: text/xml|Print |<?xml version="1.0" ?>|
Subject: I actually have this
Print {Content-type: text/xml} Print {Cache-Control: private}
Subject: Yes
I have that as the 1st two print statements.