Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SOAP in asp.net mvc

A 3rd party site sends its notifications after my web application has completed some action in order to notify me of its success. Receiving a notification item requires a response back to the 3rd party server (URL) with the a containing the value "accepted".

I have never user SOAP and with the basic info found I'm a bit lost for the case of asp.net mvc. Are there any good links showing the principle of receiving and sending SOAP responses?

Tutorials / information may be presented in other languages such as java, asp.net (classic) or something. I need to get a general idea since googling on SOAP has not given me anything for the past few hours.

like image 439
bastijn Avatar asked Nov 06 '22 13:11

bastijn


1 Answers

You need to learn a little about WCF. See the WCF Developer Center, especially the Beginners Guide.

What you want is to create a simple WCF service that corresponds to the WSDL that they will give you. You will need to implement only the operation (method) that they will call to notify you. You can host a WCF service in IIS along with the rest of your application.

The issue will be how to correlate the notifications with the page you're on in your MVC application.

like image 95
John Saunders Avatar answered Nov 14 '22 18:11

John Saunders