Hello Peter,
Thanks for the reply,i have implemeted the following functionality for WebApplication. And in the same way im looking to implement for a Webservice, but how to call webmethod.
Sample Code of WebApp :
WebRequest req = null;
string uri = "http://localhost/webApp/webpage.aspx";
req = WebRequest.Create(uri);
req.Method = "POST"; [t
req.ContentType = "text/xml";
using (StreamWriter writer = new StreamWriter(req.GetRequestStream()))
{
writer.WriteLine(request);
}
WebResponse response = req.GetResponse();
|