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