473,756 Members | 6,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3546
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*@discussion s.microsoft.com > wrote in message
news:21******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in message
news:21******** *************** ***********@mic rosoft.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>.GetXM L 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*@discussion s.microsoft.com > wrote in message
news:21******** *************** ***********@mic rosoft.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
14946
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) { document.images.src = eval("mt" +menu+ ".src") } alert("imgOff_hidemenu"); hideMenu=setTimeout('Hide(menu,num)',500);
11
3185
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 the Data Access Layer method -or- 2) Pass some kind of a unique id to the Data Access Layer method
3
4758
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 around chunks of data in DataTables/DataSets, simply because that was the format that they were in when the data was taken from the database. Now, I know this maybe a pretty silly question with a standard "it depends" answer, but I'm going to...
35
2132
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; namespace TestNamespace {
25
5061
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 Logic Layer (BLL) and User Interface Layer (UIL). The problem I found with this was circular referencing...
5
7426
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 navigating through the data. I can get the data into a datagrid without any problems, but I want the data to show up in textboxes and use some sort of move next, move previous, move last, etc (like in VB6) command to navigate the data (using...
11
2570
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, update, delete and inserts. I use dataset objects to pass data to and from the DAL. In my GUI (windows forms), I use databinding to bind controls to a datatable
14
6890
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 datagridview on the form. I am using the following code to spawn the worker thread... Thread WorkerThread = new Thread(new ThreadStart(WT_MyFunction)); WorkerThread.IsBackground = true; WorkerThread.Start(); The problem I am having is...I cannot seem...
1
2587
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 update code for typical vb.net / asp.net data maintenance applications. For some reason they have two class files for each table, one is a collection class. Oddly both have the same properties for each table column duplicated.. a lot of duplicate...
0
9454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9271
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9868
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9707
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5139
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3352
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.