使用HTTP的WebSevice中的SOAP消息传递 [英] SOAP Messaging in WebSevice using HTTP

查看:94
本文介绍了使用HTTP的WebSevice中的SOAP消息传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是SOAP的新手,我已经在WindowsFromApplication中完成了基于消息的通信,其中两者都可以使用TCP发送和接收SoapEnvalope。但是现在我遇到一个问题,一方在WindowsFormApplication,另一方在ASP.NET,我想以保存的方式进行通信。(在应用程序和发送信封上创建一个监听器)这是我的代码,请你帮我,我有混淆如何制作接收器,其次我应该在我的asp.net项目中添加一个Web服务(asmx)?我想用HTTP沟通



这是我的代码。

i am new to SOAP and i have already done message based communication in WindowsFromApplication where both can send and receive SoapEnvalope using TCP. But Now i am facing a problem where one Side is in WindowsFormApplication and other is in ASP.NET and i want to communicate in save way.(creating a Listeners on both application and send envelops) here is my code can u please help me, i have confusions that how to make a receiver and secondly should i add a web service (asmx) in my asp.net project or not? and i want to communicate using HTTP

here is my code.

SoapEnvalopeReceiver receiver = new SoapEnvalopeReceiver();
receiver.throwEnvalopeEvent += receiver_throwEnvalopeEvent;
Uri listeningURL = new Uri(textBoxReceiveAt.Text);
EndpointReference erpReceive = new EndpointReference(listeningURL);
SoapReceivers.Add(erpReceive, receiver);
labelStatus.Text = "Connected";
labelStatus.Visible = true;





但是我不知道在哪里放置代码以便连续收听。



but i dont know where to place that code for continuous listening.

推荐答案

这篇关于使用HTTP的WebSevice中的SOAP消息传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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