473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

best method for XML data in web service?

I developed a desktop app that reads an XML file into a dataset.
(The desktop app has the XML schema built in, so it already knows what
format the XML file should be in.)

My problem is that I want the desktop app to get
the same data from a web service.

I have a prototype working where the XML data that was in the file
is passed from the web service to the app as a string.
The app then loads it into the dataset by using the
DataSet.ReadXML(TextReader).
It works fine but I cant help feeling
that there should be a better way to pass the data.
(...by "better", I mean more type specific, as opposed to just a string.)

Is there a different type I could use?

I know the SOAP/XML standard doesn't have all the same types that .NET does,
but I haven't found any doc that shows alternatives.

So my question is, what's the best way to pass the contents of a dataset
from a web service to an application?

Thanks!
Steven S
Aug 23 '05 #1
2 1442

What I do is create a method whose return type is XmlDocument.

From my smart client, I call the method, and store the XmlDocument in a
local variable of type XmlDocoment. Then I can use the data, and search
it using XPath, locally.

Steve wrote:
I developed a desktop app that reads an XML file into a dataset.
(The desktop app has the XML schema built in, so it already knows what
format the XML file should be in.)

My problem is that I want the desktop app to get
the same data from a web service.

I have a prototype working where the XML data that was in the file
is passed from the web service to the app as a string.
The app then loads it into the dataset by using the
DataSet.ReadXML(TextReader).
It works fine but I cant help feeling
that there should be a better way to pass the data.
(...by "better", I mean more type specific, as opposed to just a string.)

Is there a different type I could use?

I know the SOAP/XML standard doesn't have all the same types that .NET does,
but I haven't found any doc that shows alternatives.

So my question is, what's the best way to pass the contents of a dataset
from a web service to an application?

Thanks!
Steven S

Aug 23 '05 #2
Why not pass it as a dataset?

"Steve" <St***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
I developed a desktop app that reads an XML file into a dataset.
(The desktop app has the XML schema built in, so it already knows what
format the XML file should be in.)

My problem is that I want the desktop app to get
the same data from a web service.

I have a prototype working where the XML data that was in the file
is passed from the web service to the app as a string.
The app then loads it into the dataset by using the
DataSet.ReadXML(TextReader).
It works fine but I cant help feeling
that there should be a better way to pass the data.
(...by "better", I mean more type specific, as opposed to just a string.)

Is there a different type I could use?

I know the SOAP/XML standard doesn't have all the same types that .NET
does,
but I haven't found any doc that shows alternatives.

So my question is, what's the best way to pass the contents of a dataset
from a web service to an application?

Thanks!
Steven S

Aug 25 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
2
by: Trond Hindenes | last post by:
Hello all, I am working on a application for analyzing data from a SQL Server Database using vb.net. THe application will mostly be web-based, although we migt use some Windows Forms for some of...
3
by: danavni | last post by:
i need to build a service that will accept incoming TCP/IP connections. the service should act like a "HUB" where on one side clients connect to it and stay connected for as long as they like and...
2
by: Steve | last post by:
I developed a desktop app that reads an XML file into a dataset. (The desktop app has the XML schema built in, so it already knows what format the XML file should be in.) My problem is that I...
0
by: John O'Neill | last post by:
Hi I would like some advice on how best to use web service proxy classes. Lets say I have a web service with 3 methods to GetCustomer, DeleteCustomer and UpdateCustomer. In my client code I...
2
by: Steven Cheng [MSFT] | last post by:
Hi Cj, I also noticed that the "Act" variable here seems hasn't been declared(or declared anywhere else?). I've try building the same code and got the same result and the "Operator '+' cannot be...
4
by: trullock | last post by:
Hi, Can anyone suggest the best way to go about the following... I'm tracking clicks (mouse down x,y coordinates) on a web page by using some javascript to create an XHR which sends the...
5
by: Eric Fortin | last post by:
I have a disconnected handheld device that I want to send the results of the day to a database through a web service (on an intranet) What's the best method to do this? XML? Tab...
2
by: Ben Joyce | last post by:
Hi all. I'm confused as to what the best or expected approch is to Web Service design under .Net, mainly with regards to Methods and Parameters. This is a bit awkward to explain so please bear...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.