soapfault soapserver故障字符串

时间:2012-03-06 05:46:05

标签: android ksoap2 soapfault

hiii所有,我得到了肥皂故障异常类型的
“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();
    }

提前致谢!!!

1 个答案:

答案 0 :(得分:0)

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