473,395 Members | 1,766 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,395 software developers and data experts.

Passing Custom Object

I am new to ASP.net webservice and have a quesiton.

Is is possible to pass custom object to a web service (using VB 2005)? My
custom object will look like this
Public Class Myclass

Public Property1 As String
Public Property2 As Integer

Public Property myCollection1 As Arraylist (Actually, it will be a strongly
type collection)

Public Property MyCollection2 AS Arraylist (Another strongly type collection)

End Class

My concern is more towards my object is having custom collection as its
public property. Thanks in advance
Feb 20 '07 #1
2 4253
Hi,
You will find following Link useful:
www1bpt.bridgeport.edu/~mahmood/cs555/csharp_webservices1.doc

Search for "Using Custom Data Types in WebMethods" in the doc document that
you download.
Hope this helps you out.

Thanks and regards,
Manish Bafna.
MCP and MCTS.
"css" wrote:
I am new to ASP.net webservice and have a quesiton.

Is is possible to pass custom object to a web service (using VB 2005)? My
custom object will look like this
Public Class Myclass

Public Property1 As String
Public Property2 As Integer

Public Property myCollection1 As Arraylist (Actually, it will be a strongly
type collection)

Public Property MyCollection2 AS Arraylist (Another strongly type collection)

End Class

My concern is more towards my object is having custom collection as its
public property. Thanks in advance
Feb 21 '07 #2
css,

Your concern is valid. We need to be cautious while passing custom
collections back and forth between the webservices. We can pass the Basic
Types and the even Custom Objects back and forth between webservice.
CustomCollections are not transmitted directly as as a CustomCollection
across the wire. Let's say you have the EmployeeCollection
(hastable/ArrayList), this would not be transmitted directly as
EmployeeCollection across the wire.
Rather this would be transmitted as the arry of Employee objects across the
wire.
In such case your SOAP Message size also get's increases.

Passing CustomCollections may have slight impact on the
performance. Please decide whether to really to PassCustomCollections
--
Thanks & Regards,
Mark Nelson
"css" wrote:
I am new to ASP.net webservice and have a quesiton.

Is is possible to pass custom object to a web service (using VB 2005)? My
custom object will look like this
Public Class Myclass

Public Property1 As String
Public Property2 As Integer

Public Property myCollection1 As Arraylist (Actually, it will be a strongly
type collection)

Public Property MyCollection2 AS Arraylist (Another strongly type collection)

End Class

My concern is more towards my object is having custom collection as its
public property. Thanks in advance
Feb 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
2
by: Barry Moon | last post by:
Hi Can anyone give me any help with passing an object across processes, via drag and drop? I've written a custom ListView control, which supports dragging and dropping of its items. The...
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...
6
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
12
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded...
9
by: Greger | last post by:
Hi, I am building an architecture that passes my custom objects to and from webservices. (Our internal architecture requires me to use webservices to any suggestion to use other remoting...
8
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I'm trying to pass values of different data-types to a web-service. I thought it would be easier to box these values and pass them as a System.object parameter, like public void...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.