我可以使用HttpWebRequest调用WCF服务吗 [英] Can I call a WCF service using HttpWebRequest

查看:116
本文介绍了我可以使用HttpWebRequest调用WCF服务吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以使用HttpWebRequest调用WCF服务?

我已经通过HttpWebRequest调用了ASP.NET Web服务.
欢迎任何参考,想法,建议.

预先谢谢您.

Is there a way that I can call a WCF Service using HttpWebRequest?

I have used ASP.NET Web Service by calling through HttpWebRequest.

Any references, ideas, suggestions are welcome.

Thanks in advance.

推荐答案

是的.这取决于WCF服务具有的绑定类型.它必须使用 WebHttpBinding [
Yes you can. It depends on the kind of binding your WCF service has. It must use WebHttpBinding[^]. Can you check which binding your service uses?


这篇关于我可以使用HttpWebRequest调用WCF服务吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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