Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 9th, 2006, 05:23 AM
Authorized User
Join Date: Oct 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to monuindia2002
Default Returning XML from aspx page to windows app

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)
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>
- <soapenv:Body>
- <process>
  <processX />
can anybody help me in getting this xml from aspx to windows app

Old February 10th, 2006, 07:18 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Why don't you use web services? Web service calls will handle all this detail for you.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return an XML string from aspx page webnet ASP.NET 2.0 Professional 2 November 23rd, 2007 05:56 AM
Adding Windows Media Player to ASPX page bleitner ASP.NET 2.0 Professional 2 August 13th, 2007 03:08 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
Add XSLT transformed XML (html) on an aspx page humour XSLT 2 September 30th, 2004 05:13 AM
returning XML from ASP page amrit_82 Classic ASP Professional 4 July 6th, 2004 05:37 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.