Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / August 2005

Tip: Looking for answers? Try searching our database.

best method for XML data in web service?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 23 Aug 2005 21:23 GMT
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
John Bailo - 23 Aug 2005 23:53 GMT
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.

> 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
[quoted text clipped - 21 lines]
> Thanks!
> Steven S
William LaMartin - 25 Aug 2005 03:13 GMT
Why not pass it as a dataset?

>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
[quoted text clipped - 22 lines]
> Thanks!
> Steven S

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.