Windows服务发出的Web服务请求 [英] Web Service Request from Windows Service

查看:106
本文介绍了Windows服务发出的Web服务请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个Windows服务,该服务的调度程序每15分钟触发一次.当它启动时,它从db收集数据并将数据序列化为json对象.我需要调用一些URL,然后将json对象传递给该URL.
有人可以帮忙将此json对象传递到url吗?

预先谢谢您.

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.

推荐答案

好吧,从您对我的评论的答复中仍然不太清楚.但是听起来您正在尝试调用基于REST(url)的服务/api.看看下面的文章链接.

带有客户端和Mozilla Firefox –REST的RestFul WCF JSON服务客户

请参考上述文章中的PassObject_Click事件的代码.如果有任何困难,请发表您的评论.

干杯-Rais
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


这篇关于Windows服务发出的Web服务请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆