Passare un array ad un web service

giovedì 01 febbraio 2007 - 10.16

liuc Profilo | Junior Member

Non riesco ad invocare un web service che accetta in ingresso un array ; in fase di compilazione ottengo il seguente errore :
"Value of type '1-dimensional array of System.Data.SqlClient.SqlParameter' cannot be converted to '1-dimensional array of UTGNOWS.SqlParameter' because 'System.Data.SqlClient.SqlParameter' is not derived from 'UTGNOWS.SqlParameter'"

il web service è così dichiarato :
<WebMethod()> _
Public Function UTGNOWS_ExecuteSQLStored(ByVal SQLStored As String, ByVal Params() As Data.SqlClient.SqlParameter) As DataSet
Dim ds As New DataSet
Dim db As New SQLDataBase
Try
ds = db.ExecuteSQLDataSet(SQLStored, Params)
Catch ex As Exception
ds = Nothing
End Try
Return ds
End Function

liuc Profilo | Junior Member

No non credo, anche la chiamata contiene un array di dati del tipo SqlParameter
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5