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

webservices returning custom types

Hi,
has any one used webservices for returning custom objects other than datasets
like custom classes and their internal classes ?.

What problems you have faced if any ? is there any limitation ?
what are advantages and disadvantages.. please let me know
Kishor
Sep 4 '07 #1
4 1919
"kishor" <ki****@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
Hi,
has any one used webservices for returning custom objects other than
datasets
like custom classes and their internal classes ?.

What problems you have faced if any ? is there any limitation ?
what are advantages and disadvantages.. please let me know
DataSets are exactly what _not_ to return from a web service, at least if
you want the web service to be platform-neutral.

The sort of thing you should aim to pass to and return from a web service is
primitive types, and objects composed of primitive types. This would include
arrays and structs.

Note that any methods on your object cannot be used by the client. Only the
data can be returned or passed. That's why I recommend structs, arrays, etc.
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer

Sep 4 '07 #2
Does WCF bring anything to the table in regard to using .NET types with Web
Services?

"John Saunders [MVP]" wrote:
"kishor" <ki****@discussions.microsoft.comwrote in message
news:8F**********************************@microsof t.com...
Hi,
has any one used webservices for returning custom objects other than
datasets
like custom classes and their internal classes ?.

What problems you have faced if any ? is there any limitation ?
what are advantages and disadvantages.. please let me know

DataSets are exactly what _not_ to return from a web service, at least if
you want the web service to be platform-neutral.

The sort of thing you should aim to pass to and return from a web service is
primitive types, and objects composed of primitive types. This would include
arrays and structs.

Note that any methods on your object cannot be used by the client. Only the
data can be returned or passed. That's why I recommend structs, arrays, etc.
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer

Sep 4 '07 #3
"David" <Da***@discussions.microsoft.comwrote in message
news:59**********************************@microsof t.com...
Does WCF bring anything to the table in regard to using .NET types with
Web
Services?
No.

"Web Services" is a shorthand for "XML Web Services". It's about sending XML
back and forth, not about sending objects of some .NET-specific type.

In thinking about this subject, ask yourself: what if the client were
written in Java? In JavaScript? In VB6? In Unix Shell Script?

Web Services are meant to be general enough to handle clients of all of
these kinds. But the downside is that it knows nothing at all about types.
Any
such knowledge is the result of a hack - either a customer hack, or a
Microsoft hack. If you don't want your application to be dependent on hacks,
then don't use them. Instead, understand what Web Services are and what they
are not.

..NET Remoting, on the other hand, has little or no interest in being
cross-platform. It is all about remoting .NET types.

My general suggestion is that if cross-platform is off the table, then use
..NET Remoting.
If cross-platform is _on_ the table, either now or in the future, then use
Web Services but understand that you're getting a facade over XML.
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer

Sep 4 '07 #4
"kishor" <ki****@discussions.microsoft.comwrote in message
news:95**********************************@microsof t.com...
hey John ,
you are right I have not considered your point. but what if I have a c# or
VB.net client or instead of making a platform independent webservide if we
consider microsoft platform what would be scenerio.
I generally recommend the use of .NET Remoting if you have a Microsoft-only
environment.
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer

Sep 5 '07 #5

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

Similar topics

0
by: Francois Vanderseypen | last post by:
We have a single-sign-on Tivoli authentication system with various ASP.Net application and webservices. Accessing the webservices requires authentication from outside. How can one...
8
by: Allan Ebdrup | last post by:
I just had a discussion with one of my fellow programmers. We have a class for doing some logging and sending an email, it has 5 different scenarioes of loggin that are common enough to share a...
3
by: androoo | last post by:
Hi all I have read both scott mitchells (4 guys) articles on why he doesnt like to use datasets from webservices and I have some questions if anyone has some experience in this. How secure is...
0
by: Alexandr | last post by:
Hi. In Framework 1.0, 1.1 wsdl.exe generates proxy with embedded class declaration for custom objects and if I want to use assembly with types I should manualy edit proxy class. Is this feature...
2
by: Antuane | last post by:
any one have any idea how transactions could be enabled in webservices. i.e., suppose i've got 2 methods - one to add a contact, & the other to set some miscellaneous details for the contact, in a...
4
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel...
6
by: Scott M. Lyon | last post by:
As I mentioned in my other post, I'm attempting to, using COM Interop so I can update existing VB6 code to (for several specific functions) return a Hashtable from a .NET library. I've had...
3
by: Frederik Wehlin | last post by:
Hi, I'm currently developing a windows form application, which should be able to communicate with a couple of WebServices. The Webservices are not created by me or my company and also not in .net...
0
by: failfaizan | last post by:
I made a webservice but i got the following error: Custom tool error:Unable to import WebService/Schema.Unable to import binding. Is there any problem in my WSDL.Here is my WSDL file.Plz help me...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
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,...

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.