当前位置:网站首页>自定义WebSerivce作为代理解决SilverLight跨域调用WebService问题
自定义WebSerivce作为代理解决SilverLight跨域调用WebService问题
2022-06-26 05:28:00 【长风Eric(fengcan)】
在用SilverLight进行开发时,调用一个第三方提供的WebService时遇到了跨域问题。网上都说要加策略文件到WebService所在的根目录下。呵呵,对于第三方WebService来说我们当然是无能为力了。为了绕开这个问题,我们只能用Asp.net来调用第三方的WebService。所以我们自己新建了一个WebService,里面的方法跟第三方的一样,只是简单调用了它的方法而已。然后SilverLight调用我们自己的WebService,这样就成功绕开了跨域问题。
虽然解决得并不好看,但是还算是比较经济地解决了问题。期待有更好的解决方案。
边栏推荐
猜你喜欢

递归遍历目录结构和树状展现

Henkel database custom operator '~~‘

Beidou navigation technology and industrial application of "chasing dreams in space and feeling for Beidou"

【ARM】讯为rk3568开发板buildroot添加桌面应用

localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。

【红队】要想加入红队,需要做好哪些准备?

SDN based DDoS attack mitigation

cartographer_optimization_problem_2d

cartographer_local_trajectory_builder_2d

Replacing domestic image sources in openwrt for soft routing (take Alibaba cloud as an example)
随机推荐
Security problems in wireless networks and modern solutions
ZigBee learning in simple terms Lecture 1
ECCV 2020 double champion team, take you to conquer target detection on the 7th
Secondary bootloader about boot28 Precautions for ASM application, 28035
localStorage浏览器本地储存,解决游客不登录的情况下限制提交表单次数。
Serious hazard warning! Log4j execution vulnerability is exposed!
Lstms in tensorflow_ Cell actual combat
Tp5.0框架 PDO连接mysql 报错:Too many connections 解决方法
慢慢学JVM之缓存行和伪共享
[arm] add desktop application for buildreoot of rk3568 development board
程序人生
2021年OWASP-TOP10
zencart新建的URL怎么重写伪静态
Sentimentin tensorflow_ analysis_ layer
Recursively traverse directory structure and tree presentation
基于SDN的DDoS攻击缓解
vscode config
【MYSQL】MySQL 百万级数据量分页查询方法及其优化
Douban top250
Mongodb image configuration method