At a quick glance it all looks okay. How are you parsing the response?
I assume the problem lies in there..
manfred
On Fri, Nov 12, 2010 at 9:04 AM, Fabiano Bernardo
<f.bern...@gmail.com> wrote:
> I don't know how the parser works, I think that the parser stars parsing
> when I make the transport call:
> transport.call(method, envelope);
> // Show the Result
> System.out.println(envelope.getResponse());
> Actually I didn't write code to parse the response, I found this code in a
> tutorial so I don't know how the parser works.
>
> 2010/11/12 Manfred Moser <mos...@gmail.com>
>>
>> At a quick glance it all looks okay. How are you parsing the response?
>> I assume the problem lies in there..
>>
try {
System.out.println("Chiamata");
transport.call(method, envelope);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("Eccezione IO");
} catch (XmlPullParserException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("Eccezione Parser");
}
How can I get the bodyln?
but in your case something else is wrong.. fix that first.
If I understand correctly your transport.call throws the exception..
>> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bern...@gmail.com>
>> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bernardo.it@gmail.com>
manfred
>> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bern...@gmail.com>
>> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bernardo.it@gmail.com>
>> >> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bern...@gmail.com>
>> >> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bernardo.it@gmail.com>
Like I said before. You need to single step debug what you are doing
inspecting all the objects that are involved.. using system.out this
will be a nightmare..
manfred
>> >> >> >> >> >> <f.bern...@gmail.com>
>> >> >> >> >> >> <f.bernardo.it@gmail.com>
You have to figure out what caused the xmlpullparserexception
But I dont know about xlet or j2me at all.. so ymmv
manfred
http://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java
only if the responsedump has something meaningful in it..
> request: <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:d="http://www.w3.org/2001/XMLSchema"
> xmlns:c="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header
> /><v:Body><n0:c2fConvertion id="o0" c:root="1"
> xmlns:n0="http://example.ws/xsd"><cValue
> i:type="d:string">23.1</cValue></n0:c2fConvertion></v:Body></v:Envelope>
> response: <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:c2fConvertionResponse
> xmlns:ns="http://example.ws/xsd"><ns:return>risposta:
> 23.1</ns:return></ns:c2fConvertionResponse></soapenv:Body></soapenv:Envelope>
> Why the header and the body are null?
> headerIn: null
> headerOut: null
> bodyIn: null
> bodyOut: c2fConvertion{cValue=23.1; }
> RISULTATO: null
>
> 2010/11/16 Manfred Moser <mos...@gmail.com>
>>
>>
>> http://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java
>>
you got a stack trace? and what version are you using of ksoap2-android
>> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bern...@gmail.com>
>> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bernardo.it@gmail.com>
>> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bern...@gmail.com>
>> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bernardo.it@gmail.com>
>> >> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bern...@gmail.com>
>> >> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bernardo.it@gmail.com>
>> >> >> >> >> >> <f.bern...@gmail.com>
>> >> >> >> >> >> >> <f.bernardo.it@gmail.com>
On Wed, Nov 24, 2010 at 6:21 AM, Fabiano Bernardo
<f.bern...@gmail.com> wrote:
> Is it possible to have the source file
> of ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar?
>
> 2010/11/24 Fabiano Bernardo <f.bern...@gmail.com>
>>
>> Ok I downloaded the jar with ubuntu and it's ok, I don't know why with mac
>> it is different
>>
>> 2010/11/24 Fabiano Bernardo <f.bern...@gmail.com>
>>>> >> >> >> >> >> >> >> <f.bern...@gmail.com>