I get the following response
Host: 10.10.10.10
Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "www.somewhere.com/dowhatever"
Am using Webrequest class to set the above values. However I know that the Host value cannot be set and uses the implicit value. Is there an easy way to set all of the above values
webRequest = ( HttpWebRequest)WebRequest.Create(www.somewhereinthe world/service.asmx);
webRequest.Headers.Add( "SOAPAction","www.somewhere.com/dowhatever");
webRequest.ContentType = "text/xml; charset=utf-8";
webRequest.Accept = "text/xml";
webRequest.Method = "POST";
Canot set the host.
Thanks
.NET Development10
|