我如何克服wsdl和跨域异常 [英] how do i get past wsdl and cross-domain exceptions

查看:266
本文介绍了我如何克服wsdl和跨域异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我已经完成了这个Silverlight Web应用程序的设置,该应用程序在button_click上调用了一个Web服务,该服务将文件保存到服务器硬盘驱动器,并将其附加并将信息发送到电子邮件地址.它可以在我的开发机器上完美运行.

我尝试在IIS中的Web上进行设置,但您可以正常访问该网站,但是当浏览器中单击按钮时,不会保存任何文件,也不会发送电子邮件.我尝试在我们的服务器上的VS2010中运行它,因此该网站在localhost:16801下运行,但是仍然使用Web URL引用了Web服务.我收到关于该Web服务由于某种原因无法正常工作的大量警告,我已经搜索并尝试了所有尝试以使它们脱离我的方式,但无济于事,而且我不知道自己还能做些什么失踪了吗?

警告看起来像这样:

https://skydrive.live.com/?cid=B7A005FD6D9E4A6F&id=B7A005FD6D9E4A6F%21107

如果我在localhost设置下运行Web服务,然后在服务器上对其进行调试,则它再次可以正常运行,但是否则,什么也没发生.

部署这样的应用程序时需要注意什么?我可能会缺少什么?
在您询问之前,我已经创建了corssdomainplicy.xml,无论如何我都会收到跨域警告.它很奇怪.

Hey everyone.

I''ve finished setting up this silverlight web app that on button_click, calls a web service that saves a file to the server hard drive, and attaches it and sends the information to an email address. It works flawlessly on my dev machine.

I tried setting it up on the web in IIS, and you can get to the website just fine, but when button click occurs in your browser, no file gets saved and no email gets sent. I tried running it in VS2010 on our server, so the website ran under localhost:16801, but the web service was still referenced with the web url. I got a whole bunch of warnings about this webservice not working for some reason, and I''ve googled and tried everything to get them out of my way, to no avail, and I can''t figure out what else I could be missing?

The warnings look like this:

https://skydrive.live.com/?cid=B7A005FD6D9E4A6F&id=B7A005FD6D9E4A6F%21107

If I run the web service under localhost settings, and then debug it on the server, it works just fine again, but otherwise, nothing happens.

What do I need to keep in mind when deploying apps like this? What could I be missing?
Before you ask I have already created corssdomainplicy.xml, and I''d get cross-domain warnings anyways. Its weird.

推荐答案

您需要在文件夹的根目录中有一个跨域策略文件.
您可以查看此处 [ ^ ]是关于该主题的文章.
You need a cross-domain policy files in the root directory of the folder.
You can view this video[^] to understand more about this.

Here[^] is an article on this topic.


这篇关于我如何克服wsdl和跨域异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆