热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

【转贴】Silverlight解决方案accessaserviceinacrossdomainway

在开发手机项目的时候,从WindowsPhone7应用程序调用webservice的时候发生了异常,与下面描述的类似。http:hi.baidu.com
在开发手机项目的时候,从Windows Phone7应用程序调用webservice的时候发生了异常,与下面描述的类似。

 http://hi.baidu.com/laozhenghit/blog/item/b912a60d72a325e6aa645747.html

Excepition like:

"An error occurred while trying to make a request to URI 'http://www.mywebsite.com/webser/emailsender.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details."

solution:

copy following as clientaccesspolicy.xml to root of web server




   
     
       
     
     
       
     
   


转:https://www.cnblogs.com/jojozhuang/archive/2011/05/03/2035017.html



推荐阅读
author-avatar
我是小白我有不烦的梦想
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有