Can't send property to Service.svc with Ksoap2

February 15, 2018, at 11:54 PM

I am trying to use ksoap2-android library and I am not able to send any property correctly to the webservice.

The thing is I am reaching Login method but always receiving false, because the input is not as expected...

What I have tried so far:

1 - Using addProperty directly with my integer

SoapObject request = new SoapObject("", "Login");
request.addProperty("number", l2345);

2 - Creating an object of a class I have created to test. This class is called Login and has just one variable called number

SoapObject request = new SoapObject("", "Login");
Login log = new Login();
request.addProperty("number", log);//number || input

3 - Creating a PropertyInfo object to add it to the request

SoapObject request = new SoapObject("", "Login");
PropertyInfo propInfo = new PropertyInfo();

4 - Creating a SoapObject and adding it to the SoapObject request...

SoapObject request = new SoapObject("", "Login");
SoapObject req = new SoapObject();
req.addProperty("number", 12345);

Service.svc?wsdl (Login part...)

<wsdl:operation name="Login">
<soap:operation soapAction="" style="document"/>
    <soap:body use="literal"/>
    <soap:body use="literal"/>

Login method Is a public method that returns a boolean and receive an integer.

bool Login(int number)

I have tried a lot of things, and searched for many examples with no luck... Server is receiving my requests but returning false because is not receiving any integer...

My requestDump is like:

<v:Envelope ...">
    <v:Header />
        <number i:type=":">123456789</number>

How should my request look like? And how can I do it?

How to capture photo and get image and thumbnail?

How to capture photo and get image and thumbnail?

I cannot believe that I've struggled with this simple problem for hours now, but I cannot get it to run properlyIn principle I want this functionality:

How do I get to scroll smoothly through a customized list view?

How do I get to scroll smoothly through a customized list view?

My custom List View just won't scroll smoothly enough and all the solutions that I looked up on this site were beyond my understandingPeople who are more than willing to explain from previous questions are equally welcome as those providing the solution

Playing .mp3 file gives AACPlayer &#39;Cannot start native decoder&#39; error

Playing .mp3 file gives AACPlayer 'Cannot start native decoder' error

Firstly, apologies, I'm not that advanced with Java