WsGetFile

Downloads a file from a web service using the provided file name.

Syntax

bool WsGetFile (string url, string filename, int timeout)

Parameters

url
Required: the URL of the web service. Smart parameters are supported.
filename
Required: the name to use for the downloaded file. Smart parameters are supported.
timeout
Optional: the timeout value in milliseconds before abandoning the request.

Returns:

True, if the action succeeds. Otherwise, False.

Level

All levels.

Details

Smart parameters are supported for all parameters. The timeout value specified for this operation will override any timeout value set elsewhere. The default timeout value is 60000 milliseconds, or one minute.

Example

WsGetfile("http://maps.googleapis.com/maps/api/staticmap?center=Costa Mesa,CA&zoom=14&size=400x400&sensor=false", "C:\Test\CMmap.png", 120000)