I want to call an external webservice. How do I do this in an asp.net mvc program? What options do I have. Does anyone have an example?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You call an external webservice in an ASP.NET MVC application the same way you call it in any .NET application. If it is a SOAP based service you generate a proxy class using svcutil.exe, if the service uses some proprietary XML you may need to resort to HttpWebRequest.