[英]Windows Mobile Pocket PC 2003 application “remote name cannot be resolved” exception when apppemt to connect web service
I'm developing a mobile application (on visual strudio 2005 sp1) and I get this exception when I try to reach the web service(written on sap). 我正在开发一个移动应用程序(在visual strudio 2005 sp1上),当我尝试访问Web服务(在SAP上编写)时遇到此异常。 But this is not all. 但这并不是全部。
When I run the app on emulator on computer(connecting internet with cable) it works fine. 当我在计算机上的模拟器上运行该应用程序(通过电缆连接互联网)时,它运行正常。 Also I installed the app to mobile device and no problem BUT only with cradle, I mean only works when it connected to computer with cable of cradle. 我也将应用程序安装到移动设备上,但仅使用底座没有问题,我的意思是仅当它通过底座电缆连接到计算机时才可以使用。
Problem starts if the app try to connect web service via wireless connection of our customer's internet.(unplugging from cradle). 如果该应用尝试通过我们客户互联网的无线连接来连接Web服务(从通讯座拔出),问题就开始了。
I figured out that if I write the WSDL link in IP form, device connects to web service(on wireless)(but not via code, by copying link to text file and clicking to it) but on other form device can't find web service's page. 我发现,如果我以IP形式编写WSDL链接,则设备将连接到Web服务(通过无线方式)(但不是通过代码,而是将链接复制到文本文件并单击以链接到它),但是在其他形式的设备上找不到Web服务页面。 I added the IP of web service to hosts file but problem still exists. 我已将Web服务的IP添加到主机文件,但问题仍然存在。
我通过从sap交易sicf中获取Web服务地址解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.