Victor Athoti.
Victor Athoti.

Reputation: 831

How to view wcf service in browser

I have develope a small web application in that i am using wcf service,I have creating a methods like GetData(), When i call this method in Browser it doesn't show any data just it showing blank page please help me how can i resolve this problem.

 http://localhost:54421/Service1.svc/GetData

Upvotes: 2

Views: 2393

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

Contrary to SOAP ASMX web services with WCF you can no longer invoke them directly in the browser. You could use the WcfTestClient.exe utility to quickly test a method. You can invoke the method directly in the browser if you are using REST and GET verb is allowed for this method.

Upvotes: 7

Related Questions