473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 3515
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.