'没有找到端点。'同时通过浏览器消耗WCF的休息服务 [英] 'Endpoint not found.' while consuming rest service of WCF through browser
问题描述
我创建了WCF Rest服务,它从客户端输入/ para并将其保存在数据库和知识中,并添加数据的表的身份。当我使用服务throgh客户端时,只有web应用程序将url作为web请求当我通过浏览器消费时出错。
首先我尝试这样: -
http:// localhost:Portnumber / Test.svc / ADD / Bodywash / Orange / 50
之后就像这样
http:// localhost:Portnumber /Test.svc/ADD?Name=Bodywash&CategoryName=Orange&Price=50
我收到错误'找不到点'。如何通过以下方式消费休息服务浏览器?我能做到吗
我尝试过:
I have created WCF Rest service that input/para from client and save it in database and knowledge with identity of table in which data is added.When I am consuming service throgh client that is nothing but web application making url as web request and getting proper output.But when I am consuming through browser getting error.
First I tried like this :-
http://localhost:Portnumber/Test.svc/ADD/Bodywash/Orange/50
after that like this
http://localhost:Portnumber/Test.svc/ADD?Name=Bodywash&CategoryName=Orange&Price=50
I am getting error'Entpoint not found'.How to consume rest service through browser?Will I able to do that
What I have tried:
First I tried like this :-
http://localhost:Portnumber/Test.svc/ADD/Bodywash/Orange/50
after that like this
http://localhost:Portnumber/Test.svc/ADD?Name=Bodywash&CategoryName=Orange&Price=50
推荐答案
参考 - c# - 从浏览器运行WCF方法 - 堆栈溢出 [ ^ ]步骤。
Refer - c# - Run WCF methods from a browser - Stack Overflow[^] for the steps.
这篇关于'没有找到端点。'同时通过浏览器消耗WCF的休息服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!