470,631 Members | 1,704 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

Passing Dataset through a collection object

GBR
I have a collection object inherited from collection base that is used to
carry my object entities from server to client through a web service. I want
to add a dataset to this collection object and send it across. But when it
gets to the web server, its failing.

Any help would be abvised? Is this possible? Can I add a dataset object and
add it into the collection array and pass it across?
Nov 23 '05 #1
3 3396
Could you please explain what "failing" means? Any error messages? Perhaps
some code would help too.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"GBR" <GB*@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
I have a collection object inherited from collection base that is used to
carry my object entities from server to client through a web service. I want to add a dataset to this collection object and send it across. But when it
gets to the web server, its failing.

Any help would be abvised? Is this possible? Can I add a dataset object and add it into the collection array and pass it across?

Nov 23 '05 #2
For "out of the box" thinking, take a look at:

1) SharpZlib
2) DIME - there is a sample for sending a zipped dataset as web service
attachement
3) WSE2

the scenario is:

Server: dataset ==> XML ==> zipped memory stream ==> SOAP attachment

Client: SOAP attachment ==> zipped memory stream ==> XML ==> dataset
"GBR" <GB*@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
I have a collection object inherited from collection base that is used to
carry my object entities from server to client through a web service. I want to add a dataset to this collection object and send it across. But when it
gets to the web server, its failing.

Any help would be abvised? Is this possible? Can I add a dataset object and add it into the collection array and pass it across?

Nov 23 '05 #3
GBR
Sorry Guys,

The error i received was "Cannot pass an object of type dataset in a
collection object...blah blah blah..."

I decided to use <dataset>.GetXML as pass it as a string through the web
service and use ReadXML on the client and assign the data to grid or other
control...

Please advise, if this is a proper way of doing things.

The way we have designed the architecture is ; we have a Carrier class
inherited from collectionbase class which is used to carry object entities as
well as datasets as xml across from server to client through web service.

Thanks,

Raj...

"Jim Rand" wrote:
For "out of the box" thinking, take a look at:

1) SharpZlib
2) DIME - there is a sample for sending a zipped dataset as web service
attachement
3) WSE2

the scenario is:

Server: dataset ==> XML ==> zipped memory stream ==> SOAP attachment

Client: SOAP attachment ==> zipped memory stream ==> XML ==> dataset
"GBR" <GB*@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
I have a collection object inherited from collection base that is used to
carry my object entities from server to client through a web service. I

want
to add a dataset to this collection object and send it across. But when it
gets to the web server, its failing.

Any help would be abvised? Is this possible? Can I add a dataset object

and
add it into the collection array and pass it across?


Nov 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by domeceo | last post: by
11 posts views Thread by Arsen Vladimirskiy | last post: by
3 posts views Thread by Simon Harvey | last post: by
25 posts views Thread by Stuart Hilditch | last post: by
5 posts views Thread by Roy Lawson | last post: by
11 posts views Thread by Peter M. | last post: by
14 posts views Thread by joey.powell | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.