没有连接到.NET Web服务Android模拟器模拟器、连接到、Web、NET

2023-09-03 07:15:28 作者:越过谎言拥抱你

我现在面临的连接我的Andr​​oid code到.NET Web服务的一个问题,即我无法从仿真器中调用Web服务。我的网络服务是自带默认情况下,当U选择Web服务项目是VS2008一个简单的HelloWorld Web服务。它被命名为Service1.asmx的

I am facing a problem in connecting my Android code to a .NET web service i.e I am not able to call the web service from within the emulator. My web service is a simple HelloWorld web service that comes by default when u select web service project is VS2008. It is named Service1.asmx

Android的code链接:[http://pastebin.com/AGEZSKue]

Android code link :[http://pastebin.com/AGEZSKue]

谁能给我解决我的问题?

can anyone give me a solution to my problem ?

推荐答案

这就是你应该添加到您的Manifest.xml文件

This is what you should add to your Manifest.xml file

<user-permission android:name="android.permission.INTERNET"></user-permission>
<user-permission android:name="android.permission.ACCESS_NETWORK_STATE"></user-permission>