I am consuming a webservice by doing a string query POST and get the response back in xmlhttp.responsetext. Unfortunately for some situations i get a response text greater than 1024 characters which i cannot directly load into a navision string. Is there anyway i can load this responsetext somewhere else and not get a string buffer error?
Thank You!
I have Navision 3.7 so i do not have Bigtext or Blobs to load it into.
0
Comments
XMLDOC.LOAD(xmlhttp.responsebody);
http://mibuso.com/blogs/ara3n/2009/02/1 ... nitiative/
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
XMLDoc.load(XMLReq.responseBody);
XMLDoc.save('C:\response1.xml');
Also the
XMLDoc.load(XMLReq.responseXML);
But the file is always empty. Only the responsetext had the return information from the webservice though it was exceeding 1024 characters for a few responses. Do i need to do any additional intital settings then what i have below
XMLReq.open('POST', 'url', FALSE);
XMLReq.setRequestHeader('Content-type','text/xml');
XMLReq.send(String);
The webservice only accepts query strings so i am not posting a .xml
Thanks again!!
IF XMLDoc.parseError.errorCode <> 0 THEN
ERROR('XML DOM Error: ' +XMLDoc.parseError.reason +' - Errorcode : '+FORMAT(XMLDoc.parseError.errorCode));
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Also my XmlDoc is 'Microsoft XML, v6.0'.DOMDocument60
Thank You ara3n
Microsoft XML, v6.0'.DOMDocument
don't use
DOMDocument60
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
It looks like the webservice is return an invalid xml file.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thank You ara3n. I will check why my xmlresponsetext is fine and the xml is invalid.
The other option is run your code using 2009 service tier and use variant type.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n