I have an n-tier system as follows:
Business
Data Access
Web Services
Basically the Business layer has all the functionality and I want to
expose that functionality thru web services. As an example, I have a
class called AddressTypes, and a method on it called GetAddressType.
I want to expose that method, GetAddressType thru a web service.
This is what I have:
<WebMethod()_
Public Function GetAddressType(ByVal AddressTypeID As String) As
Auxiliar.AddressType
Dim AddressType As New Auxiliar.AddressType
Try
Return AddressType.GetAddressType(AddressTypeID)
Catch ex As Exception
Return Nothing
End Try
End Function
In the client side though, when I call the web service method, I try to
assign its result to an instance of Auxiliar.AddressType, but I got an
error, which says basically that the Web service AddressType returned
cannot be converted to Auxiliar.AddressType.
What seems to be the problem here?
Thanks