Can i return a EntityCollection(writexml) to a Compact Framework device(readxml) ?
Using CF2 at mobile side and Net2 on web service side using llblgen 2.5. I get invalid cast when i try to readxml from mobile device. I can see that the entity has been returned ok to the mobile.
WEBSERVICE METHOD
Dim adapter As New DataAccessAdapter
Dim oExercises As New EntityCollection(Of ExerciseEntity)
Dim XMLExercises As String = ""
Try
adapter.FetchEntityCollection(oExercises, nothing)
oExercises.WriteXml(XMLExercises)
Return XMLExercises
MOBILE COMPACT FRAMEWORK CODE
Dim wsGymJunkie As New WS.Service1
Dim oExercises As New EntityCollection(Of ExerciseEntity)
Dim sReturn As String = ""
sReturn = ws.SearchExercises(Me.txtbxExerciseKeyword.Text.Trim)
oExercises.ReadXml(sReturn) **error InvalidCast