Problem with WebService API call

Hi,

one function of this web service is to download an xml file. I call URLDownloadToFile from the MS urlmon dll to do this (thanks to an earlier post by Andrei K). Problem is that it returns error code “-2147221020” and the file is not downloaded.

Here’s a code extract >

Declare Function URLDownloadToFile Lib “urlmon” Alias “URLDownloadToFileA”(_

Byval pCaller As Long, _

Byval szURL As String, _

Byval szFileName As String, _

Byval dwReserved As Long, _

Byval lpfnCB As Long) As Long

result = URLDownloadToFile(0, FileURL$, NewFilePath$, 0, 0)

When I run the same lotusscript in an agent, it works a treat!!

So I suspect it’s a WebService/API quirk or something up with the MSSOAP configurations. I searched the web but found no obvious solution. Both the WebService and the test agent have the same security settings.

Any ideas are much appreciated.

Cheers,

Alan.