WCF REST - WsHttpbinding&的WebHttpBinding [英] WCF REST - WsHttpbinding & WebHttpbinding

查看:57
本文介绍了WCF REST - WsHttpbinding&的WebHttpBinding的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有要求创建API并通过互联网发布。以下是API的requiremtns。



1)这只需要注册用户访问。目前注册用户可以在会员数据库中使用。

2)以XML和json格式显示数据(这可以在REST WCF服务中使用)



问题:

1)我想要验证正在访问该服务的用户。

2)以xml和json的形式返回数据

3)我无法使用webHttpbinding在json和xml中公开数据认证。

4)是否可以使用wsHttpBinding返回json和xml中的数据,因为它支持会员数据库的用户身份验证。



期待一些帮助。



预付款!!



谢谢

N. Srinivas

解决方案

http://benjii.me/2010/05/how-to-return-multiple-formats-with-wcf-including-xml-json-and-atom/



http://debugmode.net/2011/05/15/wcf-rest-service-with-josn-data/



http://www.west-wind.com/weblog/posts/2007/ Oct / 04 / WCF-and-JSON-Services


您可以参考这个文章

Hi,

I have requiremment to create an API and publish over internet. Below are the requiremtns for the API.

1)This need to be accessed only by registered users.Currently registered users are avaiable in Membership database.
2)Expose data in XML and json (Which is possible in REST WCF Service)

Questions:
1)I want to authenticate user whoever is accessing the service.
2)return the data either in xml and json
3)I am unable to expose data in json & xml using webHttpbinding with authentication.
4)Is it possible to return data in json and xml using wsHttpBinding because it supports user authentication of membership database.

Looking forward for some help.

Advance Thanks!!

Thanks
N.Srinivas

解决方案

http://benjii.me/2010/05/how-to-return-multiple-formats-with-wcf-including-xml-json-and-atom/

http://debugmode.net/2011/05/15/wcf-rest-service-with-josn-data/

http://www.west-wind.com/weblog/posts/2007/Oct/04/WCF-and-JSON-Services


You may refer to this article


这篇关于WCF REST - WsHttpbinding&的WebHttpBinding的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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