473,396 Members | 2,023 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,396 software developers and data experts.

dataset in webservice

I want to return a dataset from my <WebMethod>.

Is a dataset a common type or it's just Microsoft data type only? I
want to make sure whoever connects to my service is able to understand
my webservice... being Java, php, etc...

Tascien

Feb 26 '06 #1
1 1318
When a dataset is sent over the wire (barring encryption) it will look will
be in XML. Any language that can work with SOAP can work with the result
set, more over any language that can work with strings can deal with the
result set.

Other languages will be able to parse the dataset, but they may not natively
be able to reconstruct a "Dataset" from the resultset. Additionally, they
may not know how to also specify that the data has been modified (flagged
for insert, update or delete). Perhaps it would be better to provide a
mechanism to allow the consumer to specify what thier intents is with a
subset of the data. (update, insert, delete).

i.e

<webmethod> _
Public Function GetData() as dataset
return mData
'Call mdata.writexml("c:\somepath.txt") to see what the XML format of the
data is in.
End Function

<webmethod> _
Public Sub DeleteProduct(ProductID as integer)
MyClass.DeleteProduct(new integer() {ProductID})
End Sub

<webmethod> _
Public Sub DeleteProduct(ProductID() as integer)
dim sFilter as string
sFilter = string.format("ProductID={0}", intVal)
for each intVal as integer in ProductID
if mData.Products.Select(sFilter).Length > 0 then
dim dr as datarow
dr = mData.Products.Select(sFilter) (0)
dr.Delete
end if
next
UpdateData()
End Sub

"tascien" <ta******@ecoaches.com> wrote in message
news:11*********************@z34g2000cwc.googlegro ups.com...
I want to return a dataset from my <WebMethod>.

Is a dataset a common type or it's just Microsoft data type only? I
want to make sure whoever connects to my service is able to understand
my webservice... being Java, php, etc...

Tascien

Feb 27 '06 #2

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

Similar topics

6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
8
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data...
1
by: Andy | last post by:
Hello, I have a WebService that sends a client a DataSet as XML (I use a DataSet.GetXml to get the XML). The DataSet is filled by a DataAdapter in the WebService. The client coverts the XML Back...
1
by: John Young | last post by:
Hi, I have a strange problem with returning a dataset from a webservice. Here's some code... The error I get at compile time is. "Cannot convert type 'void' to 'System.Data.DataSet'" Can...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
2
by: GTi | last post by:
I have a result from webservice query: XmlDocument doc = new XmlDocument(); XmlNode newSet = doc.ImportNode( ); doc.DocumentElement.AppendChild(newSet); I have the same database on my...
13
by: Maxwell2006 | last post by:
Hi, We are having a debate over using DataSet as return value type for web services. The problem is that we don't know whether Java applications can use DataSet
4
by: David | last post by:
Hi, (Sorry for duplicate post, finger trouble before I finished...) using C# 1.1 I am writing a winform app that collects a dataset from a webservice. At the same time I collect the data,...
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
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,...
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
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
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.