当前位置:网站首页>自定义WebSerivce作为代理解决SilverLight跨域调用WebService问题
自定义WebSerivce作为代理解决SilverLight跨域调用WebService问题
2022-06-26 05:28:00 【长风Eric(fengcan)】
在用SilverLight进行开发时,调用一个第三方提供的WebService时遇到了跨域问题。网上都说要加策略文件到WebService所在的根目录下。呵呵,对于第三方WebService来说我们当然是无能为力了。为了绕开这个问题,我们只能用Asp.net来调用第三方的WebService。所以我们自己新建了一个WebService,里面的方法跟第三方的一样,只是简单调用了它的方法而已。然后SilverLight调用我们自己的WebService,这样就成功绕开了跨域问题。
虽然解决得并不好看,但是还算是比较经济地解决了问题。期待有更好的解决方案。
边栏推荐
- uniCloud云开发获取小程序用户openid
- 2021年OWASP-TOP10
- Could not get unknown property ‘*‘ for SigningConfig container of type org.gradle.api.internal
- Two step processing of string regular matching to get JSON list
- [arm] build boa based embedded web server on nuc977
- The wechat team disclosed that the wechat interface is stuck with a super bug "15..." The context of
- Gd32f3x0 official PWM drive has a small positive bandwidth (inaccurate timing)
- BOM文档
- Tensorflow visualization tensorboard "no graph definition files were found." error
- Excellent learning ability is your only sustainable competitive advantage
猜你喜欢
Could not get unknown property ‘*‘ for SigningConfig container of type org.gradle.api.internal
Using Jenkins to perform testng+selenium+jsup automated tests and generate extendreport test reports
Leetcode114. 二叉树展开为链表
红队得分方法统计
基于SDN的DDoS攻击缓解
Could not get unknown property ‘*‘ for SigningConfig container of type org. gradle. api. internal
Experience of reading the road to wealth and freedom
Supplementary course on basic knowledge of IM development (II): how to design a server-side storage architecture for a large number of image files?
DOM文档
How to ensure the efficiency and real-time of pushing large-scale group messages in mobile IM?
随机推荐
线程优先级
【ARM】讯为rk3568开发板buildroot添加桌面应用
cartographer_fast_correlative_scan_matcher_2d分支定界粗匹配
apktool 工具使用文档
June 3 is a happy day
1212312321
data = self._ data_ queue. get(timeout=timeout)
Recursively traverse directory structure and tree presentation
Pytorch forecast house price
【红队】要想加入红队,需要做好哪些准备?
PHP 2D / multidimensional arrays are sorted in ascending and descending order according to the specified key values
国务院发文,完善身份认证、电子印章等应用,加强数字政府建设
《财富自由之路》读书之一点体会
Douban top250
Internship May 29, 2019
Sofa weekly | open source person - Yu Yu, QA this week, contributor this week
程序人生
cartographer_ backend_ constraint
Leetcode114. 二叉树展开为链表
Mongodb image configuration method