Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all

I would like to know if MVC 4 web API can consume a wcf web service, because I've added a service reference in my MVC 4 web API but I can use it somehow its not finding it.

I am using the Web service to persist data into another database



regards
Posted
Updated 24-May-13 4:11am
v2
Comments
Keith Barrow 24-May-13 10:29am    
The short answer to your question is yes. The web api app is just an app, and the WCF clients are just a bunch of objects. From your existing question, it looks like the settings connecting out to the WCF aren't in the web.config properly. Can you provide more info (especially the error message) please?
tumbledDown2earth 28-May-13 7:18am    
How did you generate your proxy classes? Did you try to call the WCF service from a dummy method and see if it works?

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