473,503 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is the convention for returning .NET only data types from web service

Hi:

What would be some standard convention to follow when writing web services
for return types for .NET only data types? I initially wrote my web service
that returns some XML as System.XML.XMLDocument and some lists as
System.Data.Datasets. I realized this would be precluding any non-.NET apps
from using it.

Is it generally considered OK to have web services take and return data
types that are .NET only? Doesn't it negate the idea of web services in
general of being platform independent?

Has anyone dealt with this type of issue?

Thanks
Nov 21 '05 #1
2 1465

"Tarren" <no*****@thankyou.com> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...
Hi:

What would be some standard convention to follow when writing web services
for return types for .NET only data types? I initially wrote my web service that returns some XML as System.XML.XMLDocument and some lists as
System.Data.Datasets. I realized this would be precluding any non-.NET apps from using it.
Returning an XmlDocument is fine as far as interoperability goes. An
XmlDocument serializes itself as plain XML so the client can read the
response using the usual XML techniques. With an XmlDocument, you are not
tying yourself to .NET.

A DataSet, on the other hand, is problematic from non-.NET-client's point of
view (for more information on this, read
http://msdn.microsoft.com/library/de...e02112003.asp).
Is it generally considered OK to have web services take and return data
types that are .NET only? Doesn't it negate the idea of web services in
general of being platform independent?


It does negate the idea of platform independency, but it really depends
entirely on your specs. Is interoperability a requirement now or in the
future? If so, don't return .NET-only types. If interoperability is not a
requirement, then .NET Remoting might be more appropriate for your needs.

Regards,
Sami
Nov 21 '05 #2
thanks for the response - very helpful
"Sami Vaaraniemi" <sa**********@pleasejippii.fi> wrote in message
news:u$**************@TK2MSFTNGP12.phx.gbl...

"Tarren" <no*****@thankyou.com> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...
Hi:

What would be some standard convention to follow when writing web
services
for return types for .NET only data types? I initially wrote my web

service
that returns some XML as System.XML.XMLDocument and some lists as
System.Data.Datasets. I realized this would be precluding any non-.NET

apps
from using it.


Returning an XmlDocument is fine as far as interoperability goes. An
XmlDocument serializes itself as plain XML so the client can read the
response using the usual XML techniques. With an XmlDocument, you are not
tying yourself to .NET.

A DataSet, on the other hand, is problematic from non-.NET-client's point
of
view (for more information on this, read
http://msdn.microsoft.com/library/de...e02112003.asp).
Is it generally considered OK to have web services take and return data
types that are .NET only? Doesn't it negate the idea of web services in
general of being platform independent?


It does negate the idea of platform independency, but it really depends
entirely on your specs. Is interoperability a requirement now or in the
future? If so, don't return .NET-only types. If interoperability is not a
requirement, then .NET Remoting might be more appropriate for your needs.

Regards,
Sami

Nov 21 '05 #3

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

Similar topics

0
985
by: Demetri | last post by:
I have 2 web services. Web service "Main" and a Web Service "Proxy". I also have a shared libary of complex types. The "Proxy" web service simply calles methods of the "Main" web service. When...
2
1662
by: matthias_k | last post by:
Hello, I'm wondering if returning const references to a class member is generally faster than returning a copy of the object. Consider this code: class A { std::string data; public:
51
4452
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
0
1292
by: Demetri | last post by:
I have 2 web services. Web service "Main" and a Web Service "Proxy". I also have a shared libary of complex types. The "Proxy" web service simply calles methods of the "Main" web service. When...
1
5525
by: J. Askey | last post by:
I am implementing a web service and thought it may be a good idea to return a more complex class (which I have called 'ServiceResponse') in order to wrap the original return value along with two...
669
25393
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
5
4957
by: Jim Murphy | last post by:
In creating a C# web service, I am having trouble returning a DataTable object as the result of a web method. I have no problem returning native types like string or int, but cannot return a .NET...
2
1560
by: David++ | last post by:
Hello list, I have built a project in VS2005 which includes a Web Service Web Site. On this server there is a Database. I have used the DataSet designer to link to this database and VS2005 has...
5
8968
by: jennwilson | last post by:
Using Access 2000 - I have a query that is suppose to return the records from table within specified time range and find matching data from another table . Table houses Clinician name, location...
0
7091
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
7282
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,...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
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
5586
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 projectplanning, coding, testing,...
1
5018
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...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
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 ...
1
741
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.