Skip to main content
Hi everyone,

 

 

i am trying to run a Data Download Workspace from a Silverlight Application and i really dont get any futher.

 

I tried it with the WebClient class and the DownloadStringAsync Method but i have absolutly no success. Does anyone have experiences with Silverlight and FMEServer?

 

 

Thanks in advance!

 

 

Ulf
Hi,

 

 

if you're using the REST API of FME server, there should be no magic involved at all, compared to other REST-based webservices.

 

 

Have you looked at the FME Server developer REST playground?

 

 

David
Thanks for your answer. Yes i looked at it, but im having a litte trouble converting that to C# ;)

 

 

Concerning the Data Download Service,...where do i get the Link where the user can download the created file?

 

Using the FME Server Interface the Link appears for the user after the job is done successfully. How does that work if i run the workspace with httpget from C# Code?

 

 

Ulf
Have a look at this sample call to a workspace (from the REST playground site):

 

 

http://fmeserver.com/fmedatadownload/Samples/austinDownload.fmw?FORMAT_GENERIC=MAPINFO&opt_responseformat=json

 

 

Look at how the URL is constructed and how the published parameter "FORMAT_GENERIC" is specified. Here, the response in requested in JSON (XML is also possible, if you prefer that).

 

 

If you click on the link, you will find the url to the workspace result in the bottom of the response.

 

 

David
Thanks again!

 

 

So what i have to do is getting the XML as Response and "filtering" the url from that. Thanks!

Reply