c# - Can't send complex types to WCF Service? -
c# - Can't send complex types to WCF Service? -
i have working c# web service running on iis on dedicated server. there method gets session
object(datacontract
) , tested , working on windows clients. i'm developing "xamarin.mac" application , need connect server , i'm facing specific error.
[datacontract] public class session{ [datamember] public string email { get; set; } [datamember] public string password { get; set; } [datamember] public string computerhash { get; set; } [datamember] public string ip { get; set; } }
this session
class i'm trying send.
[operationcontract] bool login ( session session );
and method i'm calling.
but when i'm debugging, checked session
object filled , values set. server gets session
object fields of object set null. gives me null exception.
interestingly non-complex objects beingness sent without problem, these complex types giving me headaches.
what might missing here?
that depends on how you're making request. need "post" info server. info needs defined in body of message, not parameters in request url.
c# wcf datacontract monomac
Comments
Post a Comment