Search code examples
androidweb-servicesksoap2android-ksoap2

PropertyInfo.getName() ... and many other methods cannot be resolved


Here is a screenshot of my Project:

This is a screenshot of my project:

The lines hidden behind the error window are:

pi.setValue(namePart);
pi.setType(Integer.class);

as you can see I have included the ksoap-j2se-full-2.1.2.jar and also all the imports are in place. Still pi.setName(""); (and all the ones below it) is giving resolution error! apparently no such method exists in class PropertyInfo... I have already googled this and no one else seems to have any such problem anywhere on the Net or on StackOVerflow! Please help I'm stuck at the very starting point of learning Ksoap and Web Services!


Solution

  • Seems like you are using ksoap2-j2se library which is wrong. You need to use ksoap2-android library in order to get it work.