Take some action when soap message is received

Feb 19 2007 7:09 AM
I have written soap server and soap client using SoapSender and SoapReceiver class of WSE2.0. The soap server in console application while the soap client is in web application. The client requests the server. When the server replies some message to the client. This message is received in the client portion ie in the function Receive. protected override void Receive(SoapEnvelope env) { } Now the problem is, if i write some code inside the Receive function protected override void Receive(SoapEnvelope env) { //some code to extract message from the soapenvelope WewForm1 wf=new WebForm1(); wr.Response.Redirect("WebForm2.aspx"); } It won't redirect to page WebForm2.aspx. My objective is to take some action (either redirect to another page or just display the message received in the current page) when the message is received. Could somebody tell me how to do this? Thanks in advance.