Click here to Skip to main content
15,891,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
RaisKazi 28-Sep-12 13:56pm    
Are you calling a REST based service?
Babylon Lion 28-Sep-12 14:11pm    
it's a webapi
ZurdoDev 28-Sep-12 14:26pm    
You may want to first check with who created the webservice to see how they are expecting the data.
fjdiewornncalwe 28-Sep-12 15:40pm    
good point. The question indicates a level of "rookieness" shall we say so they probably haven't thought of that.

1 solution

Well, still not very clear from your reply to my comment. But it sounds like you are trying to call a REST(url) based service/api. Have a look at below article link.

RestFul WCF JSON Service with client and on Mozilla Firefox –REST Client

Please refer code of PassObject_Click event from above article. Post your comments if any difficulty.

Cheers - Rais
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900