Hi,
i have a web application that returns some xml code, that i am using in a
vb.net windows application. here is the code
Dim WebRequest As HttpWebRequest = HttpWebRequest.Create("http:\\localhost\SAmple\Web Form1.aspx")
Dim response As HttpWebResponse = CType(iRequest.GetResponse(), HttpWebResponse)
Dim stream As Stream = response.GetResponseStream()
Dim sr As StreamReader
sr = New StreamReader(stream, Encoding.UTF8)
MsgBox(sr.ReadToEnd())
In the stream reader object i am getting complete response that an aspx page generates, but i just want to get that xml code from aspx file which i generate.
here is the xml code which aspx page generates
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Header>
<action>workloadlist</action>
<sessionid>MySession</sessionid>
</soapenv:Header>
- <soapenv:Body>
- <process>
<processX />
</process>
</soapenv:Body>
</soapenv:Envelope>
can anybody help me in getting this xml from aspx to windows app
Mahesh