Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 9th, 2006, 04:23 AM
Authorized User
 
Join Date: Oct 2005
Location: Bangalore, Karnataka, India.
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

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
__________________
Mahesh
Reply With Quote
  #2 (permalink)  
Old February 10th, 2006, 06:18 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,409
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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

-Peter
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04: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



All times are GMT -4. The time now is 02:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.