G
Guest
I need to create a web client code in C# that retrieves data from a web site in sync method.
I have the following code in VB script that works today but need to be converted to c#
Set xmlHttp = WScript.CreateObject("Microsoft.XMLHTTP"
Set xmlDom = WScript.CreateObject("Microsoft.XMLDOM"
xmlDom.LoadXml("<PDETAILS FirstName=""John"" LastName=""James"" "" ZipCode=""78012"" />"
xmlHttp.Open "POST", "http://host/Purschase.aspx"; 0
xmlHttp.Send(xmlDom
xmlDom.LoadXml(XmlHttp.responseXml.Xml
Response from the site is in Xml format
A pointer & sample to C# classes will be appreciated
I have the following code in VB script that works today but need to be converted to c#
Set xmlHttp = WScript.CreateObject("Microsoft.XMLHTTP"
Set xmlDom = WScript.CreateObject("Microsoft.XMLDOM"
xmlDom.LoadXml("<PDETAILS FirstName=""John"" LastName=""James"" "" ZipCode=""78012"" />"
xmlHttp.Open "POST", "http://host/Purschase.aspx"; 0
xmlHttp.Send(xmlDom
xmlDom.LoadXml(XmlHttp.responseXml.Xml
Response from the site is in Xml format
A pointer & sample to C# classes will be appreciated