l_XMLHTTP: Automation 'Microsoft XML, v6.0'.XMLHTTP60 l_XMLDomDoc: Automation 'Microsoft XML, v6.0'.DOMDocument60 l_InStream: InStream CREATE(l_XMLHTTP); l_XMLHTTP.open('GET','HTTP://SomeDomain/SimpleRESTService',FALSE,'SomeUser','SomePwd'); l_XMLHTTP.setRequestHeader('Cache-Control','max-age=0'); l_XMLHTTP.send(); l_InStream := l_XMLHTTP.responseStream; CLEAR(l_XMLHTTP); CREATE(l_XMLDomDoc); l_XMLDomDoc.async := FALSE; IF NOT l_XMLDomDoc.load(l_InStream) THEN ERROR('Unable to load XML');
I´ve made webservice calls using automations in the past and I never had that issue.
Can I suggest try with POST?
Also, try it in postman tool, see how it behaves.
Also try to clear l_InStream variable.
I have not been able to get a result with POST - it kept giving me an error.
However; I managed to solve the issue by adding a dummy parameter with a random value:
Not pretty, but it seems to be a common solution to prevent caching