SOAP Messaging in WebSevice using 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.
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;
Re: SOAP Messaging in WebSevice using HTTP
Can you clarify if you want to have two-way communication between a windows form app and an asp.net site?
Re: SOAP Messaging in WebSevice using HTTP
yes i want to have listeners in both sides and i can initiate where ever i want. i-e either from client or server
Re: SOAP Messaging in WebSevice using HTTP
Mistake in line 3 (Communicate in same way)
Re: SOAP Messaging in WebSevice using HTTP
In that case, I suggest using SignalR.