Page 1 of 6

Echo Response Truncated

Posted: Mon Jun 10, 2013 6:40 pm
by leonardo

I'm using the Echo mode to access an xml for a REST service. The xml pasted fine and I could see the whole xml in the Echo. But the Echo Response returned split the data up at the occurrence of "[", making the returned data even much longer. Worse, it truncated the data at line 2030.
As a result of this, I am getting: codeIncorrect format. Please verify sample response data and try again./code message and cannot complete or access the RESt service.
Is there a workaround for this limitation?


Echo Response Truncated

Posted: Mon Jun 10, 2013 7:08 pm
by Maryna Brodina

Hello! Could you post your xml? You can also send it to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.


Echo Response Truncated

Posted: Mon Jun 10, 2013 7:50 pm
by leonardo

Hi Marina! I have sent the xml to support. Since it's proprietary, I don't want the data posted. Thanks.


Echo Response Truncated

Posted: Mon Jun 10, 2013 7:55 pm
by Maryna Brodina

Thank you, we'll take a look.


Echo Response Truncated

Posted: Mon Jun 10, 2013 9:36 pm
by Maryna Brodina

The problem is that you have too big file. To form Response structure use file with two Lsn, not entire file (on Response tab there is a button Automatically Create from Sample Response).


Echo Response Truncated

Posted: Mon Jun 10, 2013 10:12 pm
by leonardo

Thanks, Marina. I'm not sure I entirely follow you. Did you mean that I should break the file into 2 xmls or break the xml into 2 Lsn elements under the same xml tree?


Echo Response Truncated

Posted: Mon Jun 10, 2013 10:38 pm
by Illya Stepanov

Hi Leonardo - your second statement is correct. As result you must get a file with 2 Lsn elements.
In Echo mode you got now too much text information - it does not affect the functional working of a service, but formation of a structure in overall does not maintain as much data as it getting now.


Echo Response Truncated

Posted: Mon Jun 10, 2013 11:12 pm
by leonardo

Hi Illya. Okay, say there are 500 Lsn elements with their children, should I structure it like this:
code
<Mainname>
<Lsns>
<Lsn>
<&#47;Lsn>
&#46;&#46;&#46;1-250 <Lsn> nodes & children
<&#47;Lsns>
<Lsns>
<Lsn>
<&#47;Lsn>
&#46;&#46;&#46;251-500 <Lsn> nodes & children
<&#47;Lsns>
<&#47;Mainname>

I ask this because before your response came I tested half of the xml and put the <Lsn> nodes within one <Lsns> node and got the same error&#46;/code


Echo Response Truncated

Posted: Tue Jun 11, 2013 12:38 am
by Illya Stepanov

I need to test this - but you can try it. Please inform me about the result.


Echo Response Truncated

Posted: Tue Jun 11, 2013 1:42 pm
by leonardo

Any progress on this? It didn't work by cutting it in half and putting the nodes within another as suggested. There has to be a way to accommodate very large files. Most of my projects require much larger files.