473,790 Members | 2,561 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to return an XML document from a Web Service

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
5 6973
"GH" <do*******@hotm ail.comwrote in news:1170631810 .029219.209660
@v45g2000cwv.go oglegroups.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
GH,

The most simple one is the dataset.

Cor

"GH" <do*******@hotm ail.comschreef in bericht
news:11******** **************@ v45g2000cwv.goo glegroups.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
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...@hotm ail.comschreef in berichtnews:11* *************** ******@v45g2000 cwv.googlegroup s.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
Gh,

You can try this

(everything written in this message and nothign checked.

dim GH as new Dataset("GH")
dim dotnetgod as net DataTable("dotn etogd")
dim dca as new datacolumn("a")
dim dcb as new datacolumn("b")
ds.tables.add(d otnetgod)
dotnetgod.colum ns.add(dca)
dotnetgod columns.add(dcb )
dt.loaddatarow( new object() {"you","jij"},t rue)
dt.loaddatarow( new object() {"he","hij"},tr ue)
ds.writexml("c: \mijdata.xml")

have a look at that xml file.

Cor
"GH" <do*******@hotm ail.comschreef in bericht
news:11******** *************@a 34g2000cwb.goog legroups.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...@hotm ail.comschreef in
berichtnews:11 *************** *******@v45g200 0cwv.googlegrou ps.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
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("dotn etogd")
dim dca as new datacolumn("a")
dim dcb as new datacolumn("b")
ds.tables.add(d otnetgod)
dotnetgod.colum ns.add(dca)
dotnetgod columns.add(dcb )
dt.loaddatarow( new object() {"you","jij"},t rue)
dt.loaddatarow( new object() {"he","hij"},tr ue)
ds.writexml("c: \mijdata.xml")

have a look at that xml file.

Cor

"GH" <dotnet...@hotm ail.comschreef in berichtnews:11* *************** *****@a34g2000c wb.googlegroups .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...@hotm ail.comschreef in
berichtnews:11* *************** ******@v45g2000 cwv.googlegroup s.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3440
by: Bruce W.1 | last post by:
The intent of my web service is an RSS feed from a blog. Originally I used a StringBuilder to make the XML and returned a string from the webmethod. But this doesn't display properly in IE. So now I'm trying an XmlTextWriter instead. I whipped-up another webservice based on this: http://www.codeproject.com/aspnet/RSSviaXmlTextWriter.asp?print=true This example isn't set up strictly as a webservice. It seems to output to an aspx...
2
14347
by: Richard A. Wells | last post by:
All I wanted to do was implement a web service where I'd receive an XML document and return one in response. I'd already figured out how to use XmlReader and XmlWriter classes to do the XML work I need to do. And all that fancy ASP.NET serialization really got in my way. Reading articles by Yasser Shohoud, Tim Ewald, and Matt Powell led me down many promising paths, along the way writing an XSD schema file for my messages, trying to...
1
20963
by: R.A. | last post by:
Hi, I have an web service method that accept an xml document and returns a different xml document. Based on the input xml I fill a dataset with information from a database. If the dataset has rows then I need to return those rows to the consumer. I can't tell if the consumer of the web service will use .Net or maybe java. 1) If the web service method returns a Dataset then the consumer will get information on the Dataset. What if the...
16
4930
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by Microsoft must be installed on their servers. Now german Umlaute (ä, ü, ö) and quotes are returned incorrectly in SOAP fault responses. This can be easily verified: Implement the following in a web service method (just raises a SOAPException with a...
9
3222
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. What it does is to call a webservice with two parameters, one being a integer, the other one being a "String" which contains XML (not the best practice, however that is the target interface and we cannot change that).
1
2863
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
2
3105
by: crabsdf | last post by:
My project is a single method class which takes a xml object and, using Apache FOP, transforms it into a PDF which is returned as an output stream. Here is full code package transactionStatement; import javax.xml.transform.TransformerFactory; import javax.servlet.*; import org.jdom.*; import java.io.ByteArrayOutputStream; import java.io.File;
8
2074
by: Anthony Bollinger | last post by:
This is my first attempt at writing an XML web service. I have a query successfully written for SQL Server that returns XML data using FOR XML AUTO. It seems rather than processing the XML and building a text string in XML format to return, there should be some way to directly return the XML I get from SQL Server. What I seem to be getting is a properly formatted XML string that is not identified as XML (not sure why), but I want this to...
5
5177
by: TompIfe | last post by:
Hi, I have a web service that reads data from an Access database using datareader and place the data in an array that the web method returns. Now, I want to make the web service also to return an xml file with the data. How do I best proceed? Best regards, Tom
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.