The method setName(String) is undefined for the type PropertyInfo

Posted on 2011-10-06
Last Modified: 2012-05-12
I have an android app that is using ksoap to connect to a .NET WebService

everything works smoothly but when I try to create parameters it throws several errors with the following code
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME1);

PropertyInfo param1 = new PropertyInfo();

Open in new window

it throws the following messages of error:

The method setName(String) is undefined for the type PropertyInfo
The method setValue(String) is undefined for the type PropertyInfo
The method addProperty(PropertyInfo, Object) in the type SoapObject is not applicable for the arguments (PropertyInfo)

I have the following includes:

import org.ksoap2.*;
import org.ksoap2.serialization.*;
import org.ksoap2.transport.*;
import org.w3c.dom.Text;

import android.os.Bundle;
import android.widget.TextView;
Question by:Gabriel_Espinoza
    LVL 86

    Assisted Solution


    Open in new window

    LVL 47

    Accepted Solution


    I guess this si how you can do it:

    SoapObject _client = new SoapObject("...)
            PropertyInfo UIDInfo = new PropertyInfo ();
            UIDInfo.type = PropertyInfo.STRING_CLASS;

    Open in new window

    LVL 86

    Expert Comment

    >>I guess this si how you can do it:

    How does that differ from what i already stated?

    Author Closing Comment

    Thank you both :)

    I granted more points to for_yan because he gave me more detailed information about not only the name but the type and value.

    Thanks again :)

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    The case of the missing phone talks about the way a small electronic gadget (the mobile phone) has penetrated into our lives and has made us addicted to it.
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now