leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Echo Response Truncated

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Echo Response Truncated

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

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Echo Response Truncated

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Echo Response Truncated

Thank you, we'll take a look.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Echo Response Truncated

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).

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Echo Response Truncated

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Echo Response Truncated

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.

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Echo Response Truncated

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Echo Response Truncated

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

leonardo
Posts: 0
Joined: Thu Mar 14, 2013 7:04 pm

Echo Response Truncated

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.

Return to “Issues”