Micro Focus QTP (UFT) Forums
How ot get big XML as a responce from web service (QTP, POST request) - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How ot get big XML as a responce from web service (QTP, POST request) (/Thread-How-ot-get-big-XML-as-a-responce-from-web-service-QTP-POST-request)



How ot get big XML as a responce from web service (QTP, POST request) - fdmerle - 09-19-2014

Hello All,
I have next code:
[code]Set HTTP = CreateObject("MSXML2.XMLHTTP")
request="URL"
HTTP.Open "POST", (request), False
HTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
'HTTP.setRequestHeader "Content-Type", "text/xml"
HTTP.send("recordName=some parameters")
set response=HTTP.responseXML[/code[/u]]
The question is: When responce is not so big, Im able to get xml DOM object
set response=HTTP.responseXML
But if this response is bigger that some amount, the HTTP.responseXML object is empty. The same behaviour could be seen for GET request. Is there any other objects that could be used instead of XMLHTTP? Will really appreciate, if somebody could help with that.

Solved. add .xml to "some URL" helped