这是 访问 webservice 时报的错误
尝试向 URI“http://xxx.xx.xx.xxx/XACBMSWebService.asmx”发出请求时出错。
这可能是由于试图以跨域方式访问服务而又没有正确的跨域策略,或策略不适用于 SOAP 服务。
您可能需要与该服务的所有者联系,以发布跨域策略文件并确保该文件允许发送 SOAP 相关的 HTTP 标头。出现此错误也可能是由
于使用的是 Web 服务代理中的内部类型而没有使用 InternalsVisibleToAttribute 属性。
有关详细信息,请参阅内部异常。
解决方案:
crossdomain.xml
<?xml version="1.0" ?>
<
allow-access-from
domain
="
*
" />
</
cross-domain-policy
>
clientaccesspolicy.xml
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
将这两个文件 粘在webservice 发布的 根目录