我应该如何从 .NET CF 3.5 Windows 应用程序连接到 .NET 1.1 Webservice?
我有一个 .NET Compact Framework 1.0 中的 Windows 应用程序。我已使用 .NET 转换向导将应用程序迁移到 .NET CF 3.5 (VS 2008)。 CF 1.0 应用程序连接到在 .NET 1.1 中开发的 Web 服务。当我尝试连接到 CF 3.5 应用程序中的同一 Web 服务时,会导致“远程服务器未响应 (503)”错误。谁能帮我解决这个问题吗?我还比较了两个版本的“References.cs”文件。他们是一样的。我应该在 .NET 3.5 或 VS 2008 中进行任何配置更改吗?
谢谢
I have an windows application in .NET Compact Framework 1.0. I have migrated the application to .NET CF 3.5 (VS 2008) using the .NET conversion wizard. The CF 1.0 application connects to a web service developed in .NET 1.1. When I tried to connect to the same web service in CF 3.5 application it results in "Remote Server is not responding (503)" error. Can anyone help me out in this? Also I compared the "References.cs" file of both versions. They are same. Is there any configuration change that I should I do in .NET 3.5 or VS 2008?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,要做的第一件事是确保 Web 服务仍然按预期运行,浏览到服务器上的定义。
接下来,我将从 WSDL 定义更新 Web 参考,以确保您拥有良好版本的 Web 参考。
1.1 和 2.0/3.5 之间存在一些差异,例如动态端点的配置,但不会影响基本通信。
否则,它应该可以工作。毕竟,Web 服务的理念是不依赖于服务器类型。
Obviously the first thing to do is ensure that the web service is still running as expected, browsing to the definition on the server.
Next I would update the web reference from the WSDL definition to ensure that you have a good version of the Web Reference.
There are a few differences between 1.1 and 2.0/3.5 such as configuration of dynamic endpoints, but none should affect basic communications.
Otherwise, it should just work. After all that is the idea of a web services is that there isn't a dependency on the type of server.