简体   繁体   English

如何将Web服务添加到Web应用程序?

[英]How can i add web service to my web application?

I have a web application that process payment to another site. 我有一个处理向其他网站付款的Web应用程序。 The scenario is my web application will send complete information (eg total payment, customer information,.etc) to a partner payment site. 该方案是我的Web应用程序将完整的信息(例如,总付款,客户信息等)发送到合作伙伴付款站点。 And then the partner payment site will respond information to my web application whether the the payment process is successful. 然后,合作伙伴付款站点将对我的Web应用程序响应信息,指示付款过程是否成功。 My problem is how can i create or add web service to my application so that the partner site will able to send me back the status of payment and that my web app will be able to update its database. 我的问题是如何创建或添加Web服务到我的应用程序,以便合作伙伴站点能够将付款状态发送回给我,并且我的Web应用程序将能够更新其数据库。 Im new to mvc and i need an EXAMPLE how to solve this. 我是MVC的新手,我需要一个示例来解决这个问题。 Thank you. 谢谢。

You can either add a web-api project the will provide you a rest web service "platform" or use wcf if you prefer to do this in other ways. 您可以添加一个Web-api项目,它将为您提供一个休息的Web服务“平台”,或者如果您愿意以其他方式使用wcf,则可以使用wcf。

Read Some more to find what suits you the most: 阅读更多内容以找到最适合您的内容:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM