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

dataset array from web service

hi all,
i got this web service's method :
<WebMethod()> _
Public Function SalvaTabelle(ByVal dsTabelle As Tabelle) As Tabelle()
Dim at() As Tabelle = {dsTabelle, ConflictTabelle}
Return at
End Function

the client's call to the web service is:
Public Shared Function SalvaTabelle(ByVal dsTabelle As Tabelle) As Tabelle()
.......
Dim _dataService As New DataService
Dim at() As Tabelle = _dataService.SalvaTabelle(instanceChanges)
.......
end Sub
p.s Tabelle is a typed dataset

but the at() client's variable is only populated of the first dataset and
has length=1
where have i missed the second element ?
what is wrong?

thanks very much
cosetta
Nov 23 '05 #1
1 1145
AC
Hi. It works fine on my computer. Try to test it. E.g. change Tabelle on a
String, replace a line with some like
Dim at() As String = {"hello", "world"} and so forth.
hi all,
i got this web service's method :
<WebMethod()> _
Public Function SalvaTabelle(ByVal dsTabelle As Tabelle) As Tabelle()
Dim at() As Tabelle = {dsTabelle, ConflictTabelle}
Return at
End Function

the client's call to the web service is:
Public Shared Function SalvaTabelle(ByVal dsTabelle As Tabelle) As Tabelle() ......
Dim _dataService As New DataService
Dim at() As Tabelle = _dataService.SalvaTabelle(instanceChanges)
......
end Sub
p.s Tabelle is a typed dataset

but the at() client's variable is only populated of the first dataset and
has length=1
where have i missed the second element ?
what is wrong?

thanks very much
cosetta

Nov 23 '05 #2

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

Similar topics

19
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not...
1
by: STeve | last post by:
Hi guys, I was wondering how I would go about creating a string array from a single column from a dataset. What I was thinking was iterate through each row in the dataset, finding out the size...
5
by: Trond | last post by:
I have a webservice that is returning a dataset. In dataset there is a table with 4 columns. (LDate, LTime, LDepth and ServiceNumber) I then try to read only 2 of the columns into array (double...
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...
17
by: Modica82 | last post by:
Hi All, I am very new to web services, so am struggling to understand exactly what I am doing with regards to its returns etc. I have been given the task of designing and developing a web...
3
by: GBR | last post by:
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...
0
by: Johnny | last post by:
I have a PocketPC mobile application that gets its data from the Sql Server database via a web service. The web service returns a dataset that I need to load into the SqlCe database on the mobile...
1
by: TiGeR79 | last post by:
Hello, I've written a webservice which returns a dataset containing just one table with two columns. One colum holds a string while te second holds an image serialized into a byte array. This...
7
by: samoore | last post by:
I have found two or three places where it states that to update an item in a dataset, all I have to do is do DataSet.Tables.Rows.ItemArray = "String". When I attempt to do this it does not work. ...
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.