Forum Moderators: open

Message Too Old, No Replies

output xml from webservice

output xml from webservice

         

Ristance

2:16 am on Dec 1, 2003 (gmt 0)



Perhaps a very simple question, perhaps lack of sleep drives me insane, but here goes: I have a webservice (asmx) which of course outputs xml. I also have a consumer (aspx) which uses it via a proxy class.

short modified snippet:
Public Sub Page_Load()
Dim Service As Something.Something2 = New Something.Something2()
Text1.Text = Service.GetInfo(X).FirstName
End Sub

now that will fill Text1.Text with the data from the FirstName node, however I'm wondering how to save this as an xml file or even more importantly how to output this as xml on the screen without having to rebuild it from scratch which seems redundant since it's already in xml format.

Any Help would be greatly appreciated, and I thank you in advance.

korkus2000

6:45 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Ristance,

Why not convert the xml file to a dataset? If you want to save it then just use the datasets writeXML() method.