Type Conversion

 

My web service exposes a function which returns a class call ReturnData

<WebMethod()> Public Function GetData() As ReturnData.Data

 

My client application exposes the ReturnData class

Dim MyReturnData As New ReturnData.Data

MyReturnData = CallWebService.GetData

When I try to read the web service data back into the class returndata, I get the following

"Value of type 'OfficeManage.localhost.data cannot be converted to "ReturnData.Data"

 

It seems to me that both the web service function and my client call are aligned and correct.  What am I missing

Thanks,

Fred Herring




Answer this question

Type Conversion