Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Newbie: Return a xml-document to client

Reply
Thread Tools

Newbie: Return a xml-document to client

 
 
Daniel Johansson
Guest
Posts: n/a
 
      08-08-2003
Hi

I have a webservice that generates a xmldocument when you call it either
from a .aspx-site or with http-GET.
eg. http://...ws.asmx/method?arg1&arg2
I now want to present this xmldocument for the user i his/her webclient (eg
Internet Explorer). I cannot return the xml-document as a dataset since
"
The same table (ContactAddress) cannot be the child table in two nested
relations.
at System.Data.DataRelation.CheckNestedRelations()
"

A problem with the datasets. Hence my xmldocument isnīt compatible with a
dataset.

My question is how i should solve this problem. I can return a void and
simply Redirect to the place
where my xml-document is but that isnīt very nice.

And btw, how do I stream and return the xmldocument, it doesnīt seem
practicle to write a new
document for every request.

Regards
// Daniel



 
Reply With Quote
 
 
 
 
simon taylor
Guest
Posts: n/a
 
      08-12-2003
How about returning the actual xml it as a string ? Then on your
client app discard the SOAP envelope, extract the xml and away you go.

If I'm missing something please do say so
simon.

"Daniel Johansson" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Hi
>
> I have a webservice that generates a xmldocument when you call it either
> from a .aspx-site or with http-GET.
> eg. http://...ws.asmx/method?arg1&arg2
> I now want to present this xmldocument for the user i his/her webclient (eg
> Internet Explorer). I cannot return the xml-document as a dataset since
> "
> The same table (ContactAddress) cannot be the child table in two nested
> relations.
> at System.Data.DataRelation.CheckNestedRelations()
> "
>
> A problem with the datasets. Hence my xmldocument isnīt compatible with a
> dataset.
>
> My question is how i should solve this problem. I can return a void and
> simply Redirect to the place
> where my xml-document is but that isnīt very nice.
>
> And btw, how do I stream and return the xmldocument, it doesnīt seem
> practicle to write a new
> document for every request.
>
> Regards
> // Daniel

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
difference between return &*i and return i; Ganesh Gella C++ 4 11-12-2004 04:28 PM
getting return value from function without return statement. Seong-Kook Shin C Programming 1 06-18-2004 08:19 AM
How do I return a return-code from main? wl Java 2 03-05-2004 05:15 PM
Return a return value from Perl to Javascript PvdK Perl 0 07-24-2003 09:20 AM



Advertisments