如何在单个WCF服务中同时启用soap和REST服务 [英] How to enable both soap and REST services in a single WCF service

查看:91
本文介绍了如何在单个WCF服务中同时启用soap和REST服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个肥皂WCF服务,现在我想为我已经编写的同一个肥皂服务启用(实现)REST服务,即我的服务应该同时具有REST和SOAP服务,该怎么办呢?我在SOAP服务中有一个方法"Get()",我希望使用REST服务来实现相同的方法.在Get()中,我使用SQL通过从数据库.在配置文件中要进行哪些更改?

谢谢...

I have written a soap WCF Service.Now I want to enable(implement) REST service for the same soap service I have written i.e my service should have both REST and SOAP services.How can I do it? I have a method "Get()" in SOAP service, I want the same method to be implemented using REST service.In Get() I''m using SQL to get the data(Username,Psswrd) by giving (UserId) from database. And what are the changes to be made in config file?

Thanks...

推荐答案

下面的链接一定会对您有所帮助,

http://stackoverflow.com/questions/186631/rest-soap-endpoints- for-a-wcf-service [ ^ ]
Following link will definately help you,

http://stackoverflow.com/questions/186631/rest-soap-endpoints-for-a-wcf-service[^]


hii,

请参考此链接

使用带有JSONP和SOAP端点的WCF服务 [ ^ ]

http://stackoverflow.com/questions/9682223/where- to-configure-a-wcf-service-rest-and-soap [
hii,

please refer this link

Consume WCF Service with JSONP and SOAP endpoints[^]

http://stackoverflow.com/questions/9682223/where-to-configure-a-wcf-service-rest-and-soap[^]


这篇关于如何在单个WCF服务中同时启用soap和REST服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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