Cannot serialize issue in KSOAP in android

前端 未结 1 765
难免孤独
难免孤独 2020-12-12 05:43

I am using SOAP services in my application,in that when i am calling SOAP services it throwing some cannot serialization problem:

     SoapObject request = n         


        
相关标签:
1条回答
  • 2020-12-12 05:58

    In my opinion your code should not compile as you are writing:

    PropertyInfo nos =new PropertyInfo();
    no.setName("No");
    no.setValue(no);
    no.setType(String.class);
    //authentication.addProperty(no);
    request.addProperty("Str", nos);
    

    Where you clearly meant:

    PropertyInfo nos =new PropertyInfo();
    nos.setName("No");
    nos.setValue(no);
    nos.setType(String.class);
    //authentication.addProperty(nos);
    request.addProperty("Str", nos);
    

    Anyway, i feel like this is a typo and that in your real code you didn't make this error.
    So to answer your question, you should tell which one is the null object. It is not possible to guess it from the code snippet you provided.
    Use a breakpoint and run your application in debug mode. Then give info about the null object.
    Also, showing your WSDL would be of great help.

    0 讨论(0)
提交回复
热议问题