Groups | Blog | Home
all groups > dotnet xml > august 2003 >

dotnet xml : XmlDataDocument/Dataset


Peter Feakins
8/25/2003 4:50:00 PM
We're building some web services that are primarily being consumed by a .net
application. We're returning datasets for that purpose. We're also have to
provide access to these services to classic asp pages. To do this we're
returning a XmlDataDocument ie

Public Function GetDataAsXml(...)
return new XmlDataDocument(GetDataAsDataSet)
End Function


1. How would you access the XmlDataDocument in asp ?
2. Is there a simple way to return as type string?

thanks


Christoph Schittko [MVP]
8/26/2003 12:09:22 AM
Peter,

If you check the WSDL of your web service, you'll see that the service just
returns the raw Xml contained in the XmlDataDocument inside the Response
element. The client does not know anything about the Xml coming from an
XmlDataDocument.

How you read it from the asp page, depends on the libraries you are calling
the web service with.

If you can post more details I can you more. You can also take a look at
this article on MSDN on .NET web services interoperability [0].

HTH,
Christoph Schittko
Software Architect, .NET Mentor
MS MVP XML .NET

[0]
http://msdn.microsoft.com/library/en-us/dnwebsrv/html/wsejavainterop2.asp?frame=true

[quoted text, click to view]

AddThis Social Bookmark Button