Silverlight wcf service - change return value of method -
in service had method returning bool, later changed ilist, updated service right clicking on service reference , made update. update did not update method return value. code error message says "cannot implicitly convert type bool system.collection.generic.ilist<..>"
patientservice.savepatient(personid, firstname, lastname, causeofvisit,(s, e) => patientdata = e.result);
the method in service:
[operationcontract] public ilist<patient> savepatient(string personid, string firstname, string lastname, datetime timeofarrival, string causeofvisit) { patientrepository.savepatient(personid, firstname, lastname, timeofarrival, causeofvisit); return patientrepository.patients; }
how can solve problem?
when changed returning bool ilist did build solution in build @ top menu before made update service reference? because seems me still returning bool since forgot step, needed 2 steps 1 update in server side(projectname.web) define wcf build solution , client side did update service reference.
wcfservice.topicinfoasync(query_topics, (int)numberoftopics); wcfservice.topicinfocompleted += (stopicinfo, eatopicinfo) => { topiclist = eatopicinfo.result; }
Comments
Post a Comment