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

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

问题描述

我的Web应用程序已经完成,以便通知我它更迭的一些动作后一个第三方网站发送的通知。接收通知的项目需要一个响应返回给第三方服务器(URL)与含有接受的价值。

A 3rd party site sends its notifications after my web application has completed some action in order to notify me of its succes. 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(经典)或东西psented $ P $。我需要从谷歌搜索上的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 is not giving 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.

您需要的是创建一个对应于他们会给你的WSDL一个简单的WCF服务。您需要只实现操作(方法),他们会打电话通知您。您可以与您的应用程序的其他部分一起主持在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.

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

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