0

大家好,我得到了
“Microsoft.SharePoint.SoapServer.SoapServerException”的肥皂错误异常类型

我的代码是 SoapObject soapRequest = new SoapObject(nameSpace,methodName);

    //soapRequest.addProperty("GetListResult", "TEST");

    SoapSerializationEnvelope envelope  = new SoapSerializationEnvelope(SoapSerializationEnvelope.VER11);

    envelope.dotNet=true;
    envelope.setOutputSoapObject(soapRequest);

    HttpTransportSE transport = new HttpTransportSE(url);


    //AndroidHttpTransport httpTransport;


    try {

        System.out.println("calling service");
        transport.call(SOAP_ACTION,envelope);

        System.out.println("calling complete getting result");


        //SoapObject soapResult = (SoapObject) envelope.bodyIn;


        System.out.println("soap result is "+envelope.getResponse());

    } catch (IOException e) {



        System.out.println("IOExceptio");
        e.printStackTrace();
    } catch (XmlPullParserException e) {
        // TODO Auto-generated catch block

        System.out.println("XmlPullParserException");

        e.printStackTrace();
    }

提前致谢!!!

4

1 回答 1

0

如果您遇到 SoapFault,则问题出在服务器上,而不是 Android 上。使用调试设置和 requestdump 验证 Android 创建的请求,并使用 SoapUi 等工具对其进行测试。然后在服务器上调试问题。

于 2012-03-06T05:49:17.443 回答