android调用webservice函数往服务器上传图片,结果执行到
HttpTransportSE ht = new HttpTransportSE(url);
ht.debug=true;
String soapaction=namespace+"/"+methodName;
try {
ht.call(soapaction, envelope); //出错的是这一句
if(envelope.getResponse()!=null){
Object soapPrimitive = envelope.getResponse();
Log.i("connectWebService", soapPrimitive.toString());
if(soapPrimitive.toString()!="上传图片失败!")
return true;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (XmlPullParserException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
请各位多多提解决方法,大家共同讨论解决!!先谢谢了
错误提示:
03-15 08:32:04.478: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 964 objects / 182128 bytes in 87ms
03-15 08:32:04.756: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 214 objects / 139240 bytes in 156ms
03-15 08:32:04.766: INFO/dalvikvm-heap(279): Grow heap (frag case) to 3.308MB for 522256-byte allocation
03-15 08:32:04.858: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 84ms
03-15 08:32:05.126: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 44 objects / 261760 bytes in 65ms
03-15 08:32:05.247: INFO/dalvikvm-heap(279): Grow heap (frag case) to 4.057MB for 1046544-byte allocation
03-15 08:32:05.337: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 83ms
03-15 08:32:05.757: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 3 objects / 522312 bytes in 63ms
03-15 08:32:05.757: INFO/dalvikvm-heap(279): Grow heap (frag case) to 4.494MB for 980824-byte allocation
03-15 08:32:05.837: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 71ms
03-15 08:32:05.927: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 11 objects / 320 bytes in 64ms
03-15 08:32:05.956: INFO/dalvikvm-heap(279): Grow heap (frag case) to 5.742MB for 1307760-byte allocation
03-15 08:32:06.046: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 1 objects / 48 bytes in 86ms
03-15 08:32:17.257: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 13 objects / 981320 bytes in 65ms
03-15 08:32:17.298: INFO/dalvikvm-heap(279): Grow heap (frag case) to 7.301MB for 1743672-byte allocation
03-15 08:32:17.378: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 81ms
03-15 08:32:17.487: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 5 objects / 1743792 bytes in 64ms
03-15 08:32:18.446: INFO/dalvikvm-heap(279): Grow heap (frag case) to 9.795MB for 3487328-byte allocation
03-15 08:32:18.548: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 101ms
03-15 08:32:18.628: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 80ms
03-15 08:32:18.766: INFO/dalvikvm-heap(279): Grow heap (frag case) to 11.458MB for 1743672-byte allocation
03-15 08:32:18.878: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 103ms
03-15 08:34:10.558: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 1191 objects / 5277936 bytes in 66ms
03-15 08:35:45.958: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 1058 objects / 558776 bytes in 64ms
03-15 08:35:45.997: INFO/dalvikvm-heap(279): Grow heap (frag case) to 9.870MB for 2080784-byte allocation
03-15 08:35:46.088: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 0 objects / 0 bytes in 88ms
03-15 08:35:52.418: DEBUG/SntpClient(60): request time failed: java.net.SocketException: Address family not supported by protocol
03-15 08:36:35.067: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 557 objects / 3148768 bytes in 67ms
03-15 08:36:35.188: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 7 objects / 344 bytes in 73ms
03-15 08:36:35.317: DEBUG/dalvikvm(279): GC_FOR_MALLOC freed 2 objects / 48 bytes in 98ms