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 / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Passing Dataset through a collection object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GBR - 05 Mar 2005 13:27 GMT
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?
Manohar Kamath - 05 Mar 2005 13:34 GMT
Could you please explain what "failing" means? Any error messages? Perhaps
some code would help too.

Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.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
[quoted text clipped - 3 lines]
> 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?
Jim Rand - 05 Mar 2005 16:15 GMT
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

> 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
[quoted text clipped - 3 lines]
> 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?
GBR - 08 Mar 2005 08:51 GMT
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...

> For "out of the box" thinking, take a look at:
>
[quoted text clipped - 18 lines]
> and
> > add it into the collection array and pass it across?

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



©2008 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.