如何在asp.net mvc中使用SOAP [英] How to use SOAP in asp.net mvc

查看:20
本文介绍了如何在asp.net mvc中使用SOAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Web 应用程序完成某些操作后,第 3 方站点会发送其通知,以通知我其成功.接收通知项需要向第 3 方服务器 (URL) 作出响应,其中 a 包含值已接受".

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".

我从未使用过 SOAP,并且发现基本信息后,我对 asp.net mvc 的情况有点迷茫.有什么好的链接可以说明接收和发送 SOAP 响应的原理吗?

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?

教程/信息可能以其他语言呈现,例如java、asp.net(经典)或其他语言.我需要大致了解一下,因为在过去的几个小时内在 SOAP 上使用谷歌搜索并没有给我任何信息.

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.

推荐答案

您需要了解一点 WCF.请参阅 WCF 开发人员中心,尤其是 初学者指南.

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

您想要的是创建一个简单的 WCF 服务,该服务对应于他们将提供给您的 WSDL.您只需要实现他们将调用以通知您的操作(方法).您可以在 IIS 中托管 WCF 服务以及应用程序的其余部分.

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.

问题将是如何将通知与您在 MVC 应用程序中所在的页面相关联.

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

这篇关于如何在asp.net mvc中使用SOAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆