Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900