472,978 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,978 software developers and data experts.

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 3488
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
11
by: Arsen Vladimirskiy | last post by:
Hello, If I have a few simple classes to represent Entities such as Customers and Orders. What is the proper way to pass information to the Data Access Layer? 1) Pass the actual ENTITY to...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
35
by: MuZZy | last post by:
Hi All, I got a issue here and hope someone can help me: Let's consider this code: // =================== CODE START ================================= using System; using System.Data; ...
25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
5
by: Roy Lawson | last post by:
I am having no problems connecting to a DB, creating a DataAdapter, and creating a dataset...and connecting to the data. Using the builtin data objects to do all this. My only problem now is...
11
by: Peter M. | last post by:
Hi all, I'm currently designing an n-tier application and have some doubts about my design. I have created a Data Access layer which connects to the database (SQL Server) and performs Select,...
14
by: joey.powell | last post by:
I am using VS2005 for a windows forms application. I need to be able to use a worker thread function to offload some processing from the UI thread. The worker thread will need access to a...
1
by: jc | last post by:
RE: Why use a CollectionBase class here vs dataset or dataview? I'm looking at some vb.net 2005 code that was generated from a homegrown Codesmith Template that generate all of the retreival and...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.