本帖最后由 u011745431 于 2013-08-19 17:28:00 编辑

解决方案 »

  1.   

    有点奇怪,能不能把 addProperty 写靠前点,就放在 request 定义后面。
      

  2.   

    我也碰到同样的问题,怎么都解决不了。后来没用ksoap,自己构造报文了。
      

  3.   


    把addProperty 放到前面 也是一样的结果  我就是因为看了网络上的某篇文章 才把位置移下来的。没人解决吗? 大家是不是觉得用Android来调用.net平台的服务很奇怪啊
      

  4.   


    如何自己构造报文呢? 求代码,谢谢~~~~~
    [email protected]
      

  5.   

    用 ksoap 2.5.4 呢,我一直用的这个,会不会有 BUG
      

  6.   


    如何自己构造报文呢? 求代码,谢谢~~~~~
    [email protected]http://bbs.csdn.net/topics/390591966麻烦帮我看看这个问题,我的版本是2.5.2.
      

  7.   

    public JSONArray GetJSONArray(SoapObject soapObject, String method) {
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
    SoapEnvelope.VER11);
    envelope.dotNet = true;
    envelope.setOutputSoapObject(soapObject);
    HttpTransportSE httpTranstation = new HttpTransportSE(webUrl,
    getTimeout);// 获取数据超时2分钟
    try {
    httpTranstation.call(getTargetNameSpace() + method, envelope);
    JSONObject jsonobject = new JSONObject("{list:"
    + envelope.getResponse().toString() + "}");
    return jsonobject.getJSONArray("list");
    } catch (Exception e) {
    Log.e("180", "接口获取数据异常" + e.getMessage());
    } return null;
    }
    public JSONArray GetLoginPersonInfo(String userName, String userpwd) {
    SoapObject soapObject = new SoapObject(getTargetNameSpace(),
    GetUser);
    soapObject.addProperty("userName", userName);
    soapObject.addProperty("userpwd", userpwd); try {
    return GetJSONArray(soapObject, GetUser);
    } catch (Exception e) {
    Log.e("180", e.getMessage());
    }
    return null;
    }正式项目使用 没有问题