Click here to Skip to main content
15,352,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to consume a web service in asp.net MVC application. I do not want to consume directly . I need in modular/ decouple and maintainable way .
I could not find how to do.

Can you suggest ?


Appreciate your valuable suggestion.

What I have tried:

I tried directly add reference in asp.net MVC project, but if web service is changing. i need to get latest WSDL recompile and again deploy. which is not feasible all the way
Posted
Comments
Vincent Maverick Durano 4-Aug-16 11:09am
   
Have you tried exploring on ASP.NET Web API?
Asutosha 4-Aug-16 13:06pm
   
I am using/ consuming others web service. I need to just consume the service in my application. The problem is that i do not have control over the web service.
AnvilRanger 4-Aug-16 14:37pm
   
If you do create an intermediate layer between you app and the service you are not accomplishing anything. If they web service changes you have to change your code no matter where it is to reflect the changes.

So you would either change it in your app or your "wrapper" for the service call. So you would gain nothing.
Asutosha 11-Aug-16 13:56pm
   
Thanks for the suggestion. I was thinking , any complete code to call webservice dynamically.. i got some code those are incomplete or not working

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