加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

WP7 webservice问题集合

发布时间:2020-12-17 00:33:19 所属栏目:安全 来源:网络整理
导读: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,f

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());

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读