I've got a web reference in my mfa project. It works perfectly when I call the web reference synchronously. When I try to call the web reference async, I am getting an error when I get the result. The web reference is to a wcf service. The code is very simple, a few parameters are passed in and then a boolean is returned. Its just a sample. Any ideas why this is happening? IIRC, this worked back in MfA 1.x. Am now running MfA 2. Does anyone have an example wcf service that I can call?
void btnCallAsyncWSDL_Click(object sender, EventArgs e) { com.twtmstr.www.WebServiceWSDL ws = new com.twtmstr.www.WebServiceWSDL(); ws.LoginCompleted += new com.twtmstr.www.LoginCompletedEventHandler(ws_LoginCompleted); ws.LoginAsync("MonoDroidBookEx", "MonoDroidIsGreat", "blah"); } void ws_LoginCompleted(object sender, com.twtmstr.www.LoginCompletedEventArgs e) { //trying to reference e. anything results in an exception. }
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid