dataset array from web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cosetta

    dataset array from web service

    hi all,
    i got this web service's method :
    <WebMethod()> _
    Public Function SalvaTabelle(By Val 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(By Val dsTabelle As Tabelle) As Tabelle()
    .......
    Dim _dataService As New DataService
    Dim at() As Tabelle = _dataService.Sa lvaTabelle(inst anceChanges)
    .......
    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
  • AC

    #2
    Re: dataset array from web service

    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.
    [color=blue]
    > hi all,
    > i got this web service's method :
    > <WebMethod()> _
    > Public Function SalvaTabelle(By Val 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(By Val dsTabelle As Tabelle) As[/color]
    Tabelle()[color=blue]
    > ......
    > Dim _dataService As New DataService
    > Dim at() As Tabelle = _dataService.Sa lvaTabelle(inst anceChanges)
    > ......
    > 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[/color]


    Comment

    Working...