从aspx页面发布数据以休息wcf服务 [英] Posting data to rest wcf service from aspx page

查看:69
本文介绍了从aspx页面发布数据以休息wcf服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





早上好,



在我的aspx页面中,我需要将数据传递给一个宁静的wcf服务方法,它接受参数的参数类。我需要从aspx.cs页面发送参数。所以我怎么能用post方法呢?



请举例说明一下吗?





谢谢

Hi,

Good Morning,

In my aspx page I need to pass data to a restful wcf service method which accepts parameter class of arguments.I need to send the arguments from the aspx.cs page.So How can I do it using post method?

please explain me with an example?


Thank You

推荐答案

为什么不从代码本身调用Restful服务?无需担心传递参数。



看看在.NET Framework 4.0中创建和使用RESTFul服务 [ ^ ]。
Why not calling the Restful service from code behind itself? No need to worry about passing arguments.

Take a look at Create and Consume RESTFul Service in .NET Framework 4.0[^].


这篇关于从aspx页面发布数据以休息wcf服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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