ciao.
Sto creando un web service per il framework 2.0 e ho dichiarato una struttura nella classe del webservice cosi:
codice:
Public Class Service1
Inherits System.Web.Services.WebService
<Serializable()> _
Public Structure myStructure
Public str As String
Public str2 As String
End Structure
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class
vorrei poter accedere dal client win form che ho creato la struttura dichiarata nel webservice , è possibile?
questo è il codice del client
codice:
Dim service As New localhost.Service1()
service.CookieContainer = New CookieContainer()
service.HelloWorld()
l'ho semplicemente importato come web service 2.0 ma non riesco ad accedere alla struttura myStructure come tipo per poter mandare avanti e indietro dati piu complessi come le strutture sempre pero basati su dati primitivi (string,integer ecc....).
c'è un modo per risalire ai tipi in una classe di un web service?
grazie.