I had a service operation that was using a ref parameter and another that had an IList<T> property. Removing the ref and converting the IList<T> to an array now has me hitting the serve. That's progress. You're right in that the problem lay in the contract side - Thanks for the hint.
I have classes defined in a .Net class library and the class files are added via links into a monodroid library. I am hoping to use the same classes on the server and the client by making sure they have the same serialization signature. If that's achievable, I'd be quite happy. Narayan http://www.sainaney.com -----Original Message----- From: Atsushi Eno [mailto:atsushi...@veritas-vos-liberabit.com] Sent: September-07-11 6:48 PM To: Discussions related to Mono for Android Cc: Narayan Sainaney Subject: Re: [mono-android] WCF call error Hello, The code fragment you posted was too generic and the actual important things are rather in your contract code. Can you post that too? Atsushi Eno > I have a number of data types I'd like to share between my client and > server. The client dataypes are in a Monodroid class library and I > successfully generated a wrapper using slsvcutil and the /r option. > > When I go to call the WCF service like so: > > BasicHttpBinding binding = new > BasicHttpBinding(BasicHttpSecurityMode.Transport); > > EndpointAddress endpoint = new > EndpointAddress(GetDesktopServiceUrl()); > > MyServiceClient client = new MyServiceClient (binding, endpoint); > > client.DoStuffCompleted += ..... > > client.DoStuffAsync(....) > > I get an error message in the Completed event: > > "'this' type cannot be an interface itself" > > Any help would be greatly appreciated. I know I can use WebServices > but then I end up having to map my server objects to local objects and > I'd like to avoid that. > > Thanks > > Narayan > > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid