简体   繁体   中英

How can i add web service to my web application?

I have a web application that process payment to another site. The scenario is my web application will send complete information (eg total payment, customer information,.etc) to a partner payment site. And then the partner payment site will respond information to my web application whether the the payment process is successful. 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. Im new to mvc and i need an EXAMPLE how to solve this. 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.

Read Some more to find what suits you the most:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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