It doenst compile for me.
wsMain is the web reference in the winforms project
dsUser is the typed dataset in both the client app and in the server
webservice
Dim dataService As wsMain.wsMain = GetWebServiceReference(username,
password)
Dim ds As dsUser
ds = dataService.Authenticate()
I get a squigly undeer "dataService.Authenticate()"
Here the squibly say:
Value of type 'CharmpixAdmin_01.wsMain.dsUser' cannot be converted to
'CharmpixAdmin_01.dsUser'.
and if I try
Dim ds As dataService.Authenticate()
I also get a squigly undeer "dataService.Authenticate()"
Here the squigly says "Typed 'dataService.Authenticate' is not defined."
--
(E-Mail Removed)
"Kevin Yu [MSFT]" <v-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi moondaddy,
>
> First of all, I would like to confirm my understanding of your issue. From
> your description, I understand that you need to cast an untyped DataSet
> returned from web service to a typed one. If there is any
misunderstanding,
> please feel free to let me know.
>
> We cannot cast an untyped DataSet to a typed one directly. However, as far
> as I know, we can return a typed DataSet from a web method. If you are
> referencing a web service in your project, the proxy will create the
> definition of the typed DataSet automatically for you. So you can create
> strong typed DataSet object directly from the client machine.
>
> If you are returning a typed DataSet named MyDataSet, you can achieve this
> with the following code.
>
> Dim ds As localhost.MyDataSet
> Dim s As New localhost.Service1
> ds = s.GetMyDataSet()
>
> HTH. If anything is unclear, please feel free to reply to the post.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>