Options

HTTP Response exceeds the size of the string buffer

Dave_CintronDave_Cintron Member Posts: 189
edited 2011-07-22 in NAV Three Tier
I am trying to receive an XML document through HTTP but when it exceeds 1024 it errors out.

I have tried to use the Node object, but to get to the node you have to load the XML Doc, and to load the XML Doc, you have to receive the HTTP response, and you get the error.

The XMLHTTP responsetext will not INSTREAM and even ADDTEXT throws the error.

It seems this 1024 limit applies to any operation. What to do?
Dave Cintron
Dynamics West
http://www.dynamicswest.com

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    This thread lists some options you could try: How to extract xml-content from the soap-answer
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    Dave_CintronDave_Cintron Member Posts: 189
    Finally worked it out like this:
    XMLDoc.load(XMLHttp.responseStream);
    XMLNodeList := XMLDoc.childNodes;
    FOR NodeNo := 0 TO XMLNodeList.length-1 DO BEGIN
      XMLNode := XMLNodeList.item(NodeNo);
      NodeName := XMLNode.nodeName;
      IF XMLNode.hasChildNodes THEN BEGIN
        XMLNodeList2 := XMLNode.childNodes;
    

    .. iterate through child nodes
    Dave Cintron
    Dynamics West
    http://www.dynamicswest.com
Sign In or Register to comment.