Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a secured WCF service hosted on server, I want to consume it into my application
I tried
1. Adding service reference
- this option does not show the service

2. Adding web reference
- This option does show the service, however I am not able to add it since other fields on this window are disabled including add

Please help
Posted
Updated 14-Apr-15 11:34am
v2
Comments
Rajat_RJT 15-Apr-15 5:03am    
If your service is REST based, then you must have URL of the hosted service.
Anup_CodeProject 17-Apr-15 11:25am    
I have service url however directly adding reference to the solution is not working. No service is shown in visual studio browse window. When I run the same url in browser I could see the service running.
Rajat_RJT 20-Apr-15 0:47am    
Try to add "Web Reference" rather than "Service Reference".
Anup_CodeProject 13-May-15 15:46pm    
I tried doing that, however its a secured WCF service this is the reason its not allowing me to add via "web reference" as well. All the controls are disabled.
Rajat_RJT 14-May-15 4:45am    
so i hope you got the solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900