Hello,
I have a windows service that has a scheduler that fires off every 15 minutes. When it fires off, it collects data from a db and serialize the data into a json object. I need to call some URL and then pass the json object to the url.
Can somebody help with passing this json object to the url?
Thank you in advance.
Web Service Request from Windows Service
Page 1 of 11 Replies - 471 Views - Last Post: 29 September 2012 - 07:19 AM
Replies To: Web Service Request from Windows Service
#2
Re: Web Service Request from Windows Service
Posted 29 September 2012 - 07:19 AM
You could use the DataContractJsonSerializer.WriteObject() to produce the JSON. The stream you pass in would be the request stream that used to open the HttpWebRequest on the URL.
http://msdn.microsof...y/bb908459.aspx
http://msdn.microsof...y/bb908459.aspx
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|