By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,880 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,880 IT Pros & Developers. It's quick & easy.

How to return an XML document from a Web Service

P: n/a
GH
Can someone point me to an example of a VB.Net client that reads an
XML Document from a web service?

I have a web service that successfully creates an XML document, saves
it on the server and returns it to the calling client.

Maybe I don't understand all I know about this but for some reason
what is returned is an XMLNode, not a document. How does one usually
return an XML Document from a web service? SHould I be using
XMLDatadocument?

Thanks,
GH

Feb 4 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"GH" <do*******@hotmail.comwrote in news:1170631810.029219.209660
@v45g2000cwv.googlegroups.com:
Maybe I don't understand all I know about this but for some reason
what is returned is an XMLNode, not a document. How does one usually
return an XML Document from a web service? SHould I be using
XMLDatadocument?
It's probably best to return the XML as a string - then load it into a XML
document using the LoadXML function.
Feb 5 '07 #2

P: n/a
GH,

The most simple one is the dataset.

Cor

"GH" <do*******@hotmail.comschreef in bericht
news:11**********************@v45g2000cwv.googlegr oups.com...
Can someone point me to an example of a VB.Net client that reads an
XML Document from a web service?

I have a web service that successfully creates an XML document, saves
it on the server and returns it to the calling client.

Maybe I don't understand all I know about this but for some reason
what is returned is an XMLNode, not a document. How does one usually
return an XML Document from a web service? SHould I be using
XMLDatadocument?

Thanks,
GH

Feb 5 '07 #3

P: n/a
GH
On Feb 4, 8:35 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
GH,

The most simple one is the dataset.

Cor

"GH" <dotnet...@hotmail.comschreef in berichtnews:11**********************@v45g2000cwv.g ooglegroups.com...
Can someone point me to an example of a VB.Net client that reads an
XML Document from a web service?
I have a web service that successfully creates an XML document, saves
it on the server and returns it to the calling client.
Maybe I don't understand all I know about this but for some reason
what is returned is an XMLNode, not a document. How does one usually
return an XML Document from a web service? SHould I be using
XMLDatadocument?
Thanks,
GH- Hide quoted text -

- Show quoted text -
Thanks, do you mean the XMLDataDocument?

--GH

Feb 5 '07 #4

P: n/a
Gh,

You can try this

(everything written in this message and nothign checked.

dim GH as new Dataset("GH")
dim dotnetgod as net DataTable("dotnetogd")
dim dca as new datacolumn("a")
dim dcb as new datacolumn("b")
ds.tables.add(dotnetgod)
dotnetgod.columns.add(dca)
dotnetgod columns.add(dcb)
dt.loaddatarow(new object() {"you","jij"},true)
dt.loaddatarow(new object() {"he","hij"},true)
ds.writexml("c:\mijdata.xml")

have a look at that xml file.

Cor
"GH" <do*******@hotmail.comschreef in bericht
news:11*********************@a34g2000cwb.googlegro ups.com...
On Feb 4, 8:35 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
>GH,

The most simple one is the dataset.

Cor

"GH" <dotnet...@hotmail.comschreef in
berichtnews:11**********************@v45g2000cwv. googlegroups.com...
Can someone point me to an example of a VB.Net client that reads an
XML Document from a web service?
I have a web service that successfully creates an XML document, saves
it on the server and returns it to the calling client.
Maybe I don't understand all I know about this but for some reason
what is returned is an XMLNode, not a document. How does one usually
return an XML Document from a web service? SHould I be using
XMLDatadocument?
Thanks,
GH- Hide quoted text -

- Show quoted text -

Thanks, do you mean the XMLDataDocument?

--GH

Feb 6 '07 #5

P: n/a
GH
On Feb 5, 5:44 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
Gh,

You can try this

(everything written in this message and nothign checked.

dim GH as new Dataset("GH")
dim dotnetgod as net DataTable("dotnetogd")
dim dca as new datacolumn("a")
dim dcb as new datacolumn("b")
ds.tables.add(dotnetgod)
dotnetgod.columns.add(dca)
dotnetgod columns.add(dcb)
dt.loaddatarow(new object() {"you","jij"},true)
dt.loaddatarow(new object() {"he","hij"},true)
ds.writexml("c:\mijdata.xml")

have a look at that xml file.

Cor

"GH" <dotnet...@hotmail.comschreef in berichtnews:11*********************@a34g2000cwb.go oglegroups.com...
On Feb 4, 8:35 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
GH,
The most simple one is the dataset.
Cor
"GH" <dotnet...@hotmail.comschreef in
berichtnews:11**********************@v45g2000cwv.g ooglegroups.com...
Can someone point me to an example of a VB.Net client that reads an
XML Document from a web service?
I have a web service that successfully creates an XML document, saves
it on the server and returns it to the calling client.
Maybe I don't understand all I know about this but for some reason
what is returned is an XMLNode, not a document. How does one usually
return an XML Document from a web service? SHould I be using
XMLDatadocument?
Thanks,
GH- Hide quoted text -
- Show quoted text -
Thanks, do you mean the XMLDataDocument?
--GH- Hide quoted text -

- Show quoted text -
Thanks Cor. That worked!

--GH

Feb 6 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.