解决方案 »

  1.   

    你试一下把AndroidManifest.xml文件中的:
     <uses-sdk
            android:minSdkVersion="17"
            android:targetSdkVersion="18" />
    删掉
      

  2.   

    正在使用的可用的方法,可以比较下有啥不同,万一不行也可以直接用。public static String getWebServiceData(String url, String nameSpace, String methodName, Map<String, String> map) {
    try {
    // SoapAtion设定
    String SOAP_ACTION = nameSpace + methodName;
    // 处理参数定义
    SoapObject rpc = new SoapObject(nameSpace, methodName);
    // 处理参数设定
    if (map != null) {
    Set<String> keySet = map.keySet();
    for (String s : keySet) {
    rpc.addProperty(s, map.get(s));
    }
    }
    // 连接服务器
    HttpTransportSE ht = new HttpTransportSE(url);
    _FakeX509TrustManager.allowAllSSL();
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
    // 传给服务器的参数设定
    envelope.bodyOut = rpc;
    envelope.dotNet = true;
    // 处理结果保存对象设定
    envelope.setOutputSoapObject(rpc);
    // 服务器处理执行
    ht.call(SOAP_ACTION, envelope);
    // 处理结果取得
    String resultStr = envelope.getResponse().toString();
    // 处理结果返回
    return resultStr;
    } catch (Exception e) {
    Log.d("Exception Occureed", e.toString());
    return "failed";
    }
    }