Java 将参数从Android传递到Webservice
我在将值从Android传递到Webservice时遇到问题。结果总是空的,所以我认为它不能传递值 以下是我在android(WebserviceCall)中的代码: 以下是调用它的代码:Java 将参数从Android传递到Webservice,java,android,web-services,Java,Android,Web Services,我在将值从Android传递到Webservice时遇到问题。结果总是空的,所以我认为它不能传递值 以下是我在android(WebserviceCall)中的代码: 以下是调用它的代码: _WS = new WebserviceCall(); String _strGetData = _WS.syncData("Android_LoadStaff_Where"); Toast.makeText(getApplicationContext(),"output: " + _strG
_WS = new WebserviceCall();
String _strGetData = _WS.syncData("Android_LoadStaff_Where");
Toast.makeText(getApplicationContext(),"output: " + _strGetData, Toast.LENGTH_LONG).show();
以下是我正在使用的权限:
<uses-permission android:name="android.permission.INTERNET" />
以下是我的Web服务中的屏幕截图:
当我试图调试程序时,它会停在这里,并返回一个nullString strSites=envelope.getResponse().toString()代码>
谢谢。您是否也在服务器上调试了该进程?
为了得到回应,我试着这样做
SoapObject soapObject = (SoapObject) envelope.bodyIn;
String response = soapObject.getProperty(0).toString();
SoapObject soapObject = (SoapObject) envelope.bodyIn;
String response = soapObject.getProperty(0).toString();