Skip to main content
Question

Running a Workspace with FME Server and Silverlight


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

4 replies

david_r
Celebrity
  • June 21, 2013
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

  • Author
  • June 21, 2013
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

david_r
Celebrity
  • June 21, 2013
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

  • Author
  • June 21, 2013
Thanks again!

 

 

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

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings