WP7 webservice问题集合
1:登录WP7程序的时候,报出这个错误 There was no endpoint listening at http://xxxx/xxxx/GZSoftAnimalWebServices.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException,if present,for more details. 解决方法 :查看登录地址,是否能够在网页上正常运行。特别是WP7的config文件和ServiceReferences.ClientConfig文件中的地址要正确 ? 2:List<> arraylist之类的复杂类型不能通过webservice传递 解决方法:将复杂类型中的值放入字符串 如 ???????? IList source = lbNotic.SelectedItems as IList; ????? StringBuilder str = new StringBuilder(); ??????????????????? foreach(WebServices.Notice model in source) ??????????????????? { ??????????????????????? str.Append(model.Id.ToString()+","); ??????????????????? } ??????????????????? soapclient = App.GetServicesClient(); ??????????????????? soapclient.DeleteNoticeAsync(str.ToString()); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |