XmlPullParserException: unexpected type

2,038 views
Skip to first unread message

Fab

unread,
Nov 12, 2010, 11:43:30 AM11/12/10
to ksoap2-android
Hi, I'm trying to do a Xlet application for J2ME and I need to access
to a web service using kSOAP2.

For now I have my local web service, and I'm trying to make a simple
request and response with kSOAP2.

I send this request:

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>

and I have this response:

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>

So, this looks like it's working.

But the problem is when I try to parse the response, I have this
error:

org.xmlpull.v1.XmlPullParserException: unexpected type
(position:END_DOCUMENT null@1:0 in
java.io.InputStreamReader@24f45584)
at org.kxml2.io.KXmlParser.exception(Unknown Source)
at org.kxml2.io.KXmlParser.nextTag(Unknown Source)
at org.ksoap2.SoapEnvelope.parse(Unknown Source)
at org.ksoap2.transport.Transport.parseResponse(Unknown Source)
at org.ksoap2.transport.HttpTransport.call(Unknown Source)
at TestXlet.startXlet(Unknown Source)
at com.sun.xlet.XletManager.handleRequest(Unknown Source)
at com.sun.xlet.XletStateQueue.dispatchRequests(Unknown Source)
at com.sun.xlet.XletStateQueue$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)


Did someone fixed this problem? How can I solve it?

Please help me

Thanks a lot

ps: Here there are my parameters and my wsdl file

String namespace = "http://example.ws/xsd";
String url = "http://10.1.1.2:8080/axis2.war/services/
TemperatureConverter/";
String method = "c2fConvertion";

// Create the Soap Call
SoapObject client = new SoapObject(namespace,method);
HttpTransport transport = new HttpTransport(url);

transport.debug=true;

// Add the values
client.addProperty("cValue","23.1");

// Creating the Soap Envelope
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = client;
envelope.dotNet=true;

// Call the WebService
transport.call(method, envelope);

// Show the Result
System.out.println(envelope.getResponse());

#####################################################################################

WSDL

<wsdl:definitions targetNamespace="http://example.ws">
<wsdl:documentation>TemperatureConverter</wsdl:documentation>
-
<wsdl:types>
-
<xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://example.ws/
xsd">
-
<xs:element name="f2cConvertion">
-
<xs:complexType>
-
<xs:sequence>
<xs:element name="fValue" nillable="true" type="xs:double"/>
</xs:sequence>
</xs:complexType>
</xs:element>
-
<xs:element name="f2cConvertionResponse">
-
<xs:complexType>
-
<xs:sequence>
<xs:element name="return" nillable="true" type="xs:double"/>
</xs:sequence>
</xs:complexType>
</xs:element>
-
<xs:element name="c2fConvertion">
-
<xs:complexType>
-
<xs:sequence>
<xs:element name="cValue" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
-
<xs:element name="c2fConvertionResponse">
-
<xs:complexType>
-
<xs:sequence>
<xs:element name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
-
<wsdl:message name="c2fConvertionMessage">
<wsdl:part name="part1" element="ns0:c2fConvertion"/>
</wsdl:message>
-
<wsdl:message name="c2fConvertionResponse">
<wsdl:part name="part1" element="ns0:c2fConvertionResponse"/>
</wsdl:message>
-
<wsdl:message name="f2cConvertionMessage">
<wsdl:part name="part1" element="ns0:f2cConvertion"/>
</wsdl:message>
-
<wsdl:message name="f2cConvertionResponse">
<wsdl:part name="part1" element="ns0:f2cConvertionResponse"/>
</wsdl:message>
-
<wsdl:portType name="TemperatureConverterPortType">
-
<wsdl:operation name="c2fConvertion">
<wsdl:input message="axis2:c2fConvertionMessage"
wsaw:Action="urn:c2fConvertion"/>
<wsdl:output message="axis2:c2fConvertionResponse"/>
</wsdl:operation>
-
<wsdl:operation name="f2cConvertion">
<wsdl:input message="axis2:f2cConvertionMessage"
wsaw:Action="urn:f2cConvertion"/>
<wsdl:output message="axis2:f2cConvertionResponse"/>
</wsdl:operation>
</wsdl:portType>
-
<wsdl:binding name="TemperatureConverterSOAP11Binding"
type="axis2:TemperatureConverterPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
-
<wsdl:operation name="c2fConvertion">
<soap:operation soapAction="urn:c2fConvertion" style="document"/>
-
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
-
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
-
<wsdl:operation name="f2cConvertion">
<soap:operation soapAction="urn:f2cConvertion" style="document"/>
-
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
-
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
-
<wsdl:binding name="TemperatureConverterSOAP12Binding"
type="axis2:TemperatureConverterPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
-
<wsdl:operation name="c2fConvertion">
<soap12:operation soapAction="urn:c2fConvertion" style="document"/>
-
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
-
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
-
<wsdl:operation name="f2cConvertion">
<soap12:operation soapAction="urn:f2cConvertion" style="document"/>
-
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
-
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
-
<wsdl:binding name="TemperatureConverterHttpBinding"
type="axis2:TemperatureConverterPortType">
<http:binding verb="POST"/>
-
<wsdl:operation name="c2fConvertion">
<http:operation location="c2fConvertion"/>
-
<wsdl:input>
<mime:content type="text/xml"/>
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml"/>
</wsdl:output>
</wsdl:operation>
-
<wsdl:operation name="f2cConvertion">
<http:operation location="f2cConvertion"/>
-
<wsdl:input>
<mime:content type="text/xml"/>
</wsdl:input>
-
<wsdl:output>
<mime:content type="text/xml"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
-
<wsdl:service name="TemperatureConverter">
-
<wsdl:port name="TemperatureConverterSOAP11port_http"
binding="axis2:TemperatureConverterSOAP11Binding">
<soap:address location="http://172.16.33.1:8080/axis2.war/services/
TemperatureConverter"/>
</wsdl:port>
-
<wsdl:port name="TemperatureConverterSOAP12port_http"
binding="axis2:TemperatureConverterSOAP12Binding">
<soap12:address location="http://172.16.33.1:8080/axis2.war/services/
TemperatureConverter"/>
</wsdl:port>
-
<wsdl:port name="TemperatureConverterHttpport"
binding="axis2:TemperatureConverterHttpBinding">
<http:address location="http://172.16.33.1:8080/axis2.war/services/
TemperatureConverter"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Manfred Moser

unread,
Nov 12, 2010, 11:59:12 AM11/12/10
to ksoap2-...@googlegroups.com
At a quick glance it all looks okay. How are you parsing the response?
I assume the problem lies in there..

Fabiano Bernardo

unread,
Nov 12, 2010, 12:04:29 PM11/12/10
to ksoap2-...@googlegroups.com
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..



--
F.B.

Manfred Moser

unread,
Nov 12, 2010, 12:37:12 PM11/12/10
to ksoap2-...@googlegroups.com
So where does it throw the exception? Can you actually get the bodyIn
from the envelope when you set the debug?

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..
>>

Fabiano Bernardo

unread,
Nov 12, 2010, 2:25:33 PM11/12/10
to ksoap2-...@googlegroups.com
The exception is threw here 

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?


2010/11/12 Manfred Moser <mos...@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 12, 2010, 2:27:59 PM11/12/10
to ksoap2-...@googlegroups.com
If I understand correctly your transport.call throws the exception..
if thats the case something else is wrong since ksoap actually only
gets the response in the .getResponse call .. after that call you can
debug and inspect bodyIn and that should have the answer from the
server

but in your case something else is wrong.. fix that first.

Fabiano Bernardo

unread,
Nov 12, 2010, 2:30:06 PM11/12/10
to ksoap2-...@googlegroups.com
but how can I debug with the bodyln?

2010/11/12 Manfred Moser <mos...@gmail.com>
If I  understand correctly your transport.call throws the exception..



--
F.B.

Manfred Moser

unread,
Nov 12, 2010, 2:31:12 PM11/12/10
to ksoap2-...@googlegroups.com
Use your ide to debug and single step through

>> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 12, 2010, 2:40:49 PM11/12/10
to ksoap2-...@googlegroups.com
I'm trying using this tutorial to set the communication but doesn't work and I cannot understand why!

>> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bernardo.it@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 12, 2010, 2:44:06 PM11/12/10
to ksoap2-...@googlegroups.com
Are you using this on Android or Blackberry? In any case... you will
have to debug your code.

manfred

>> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 12, 2010, 2:46:41 PM11/12/10
to ksoap2-...@googlegroups.com
It's not for Android or Blackberry, I have to write a Set Top Box application for Digital TV.

The problem is that i'm using eclipse to write the code but to compile i'm using a ant script and to run i'm using the terminal in a vmware ubuntu machine that use phoneME advanced.

So I don't know how debug my code...

2010/11/12 Manfred Moser <mos...@gmail.com>
>> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bernardo.it@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 12, 2010, 2:47:56 PM11/12/10
to ksoap2-...@googlegroups.com
Well... you will have to figure it out..

>> >> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 12, 2010, 3:15:36 PM11/12/10
to ksoap2-...@googlegroups.com
I'm trying debug my code and I don't understand when and who parse the xml response because if i try to print the parser.getName() it say null!

2010/11/12 Manfred Moser <mos...@gmail.com>
>> >> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab <f.bernardo.it@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 12, 2010, 3:44:15 PM11/12/10
to ksoap2-...@googlegroups.com
Well.. maybe there is no parser yet at this stage..

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>

Fabiano Bernardo

unread,
Nov 13, 2010, 11:12:04 AM11/13/10
to ksoap2-...@googlegroups.com
but who parse the ksoap response?

2010/11/12 Manfred Moser <mos...@gmail.com>
>> >> >> >> >> >> <f.bernardo.it@gmail.com>



--
F.B.

Fab

unread,
Nov 15, 2010, 11:55:17 AM11/15/10
to ksoap2-android
I don't understand why my envelope.bodyOut has the parameter of my
request and the envelope.bodyIn is null!




On 13 Nov, 14:12, Fabiano Bernardo <f.bernardo...@gmail.com> wrote:
> but who parse the ksoap response?
>
> 2010/11/12 Manfred Moser <mosa...@gmail.com>
>
>
>
>
>
>
>
> > Well.. maybe there is no parser yet at this stage..
>
> > 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
>
> > On Fri, Nov 12, 2010 at 12:15 PM, Fabiano Bernardo
> > <f.bernardo...@gmail.com> wrote:
> > > I'm trying debug my code and I don't understand when and who parse the
> > xml
> > > response because if i try to print the parser.getName() it say null!
>
> > > 2010/11/12 Manfred Moser <mosa...@gmail.com>
>
> > >> Well... you will have to figure it out..
>
> > >> On Fri, Nov 12, 2010 at 11:46 AM, Fabiano Bernardo
> > >> <f.bernardo...@gmail.com> wrote:
> > >> > It's not for Android or Blackberry, I have to write a Set Top Box
> > >> > application for Digital TV.
> > >> > The problem is that i'm using eclipse to write the code but to compile
> > >> > i'm
> > >> > using a ant script and to run i'm using the terminal in a vmware
> > ubuntu
> > >> > machine that use phoneME advanced.
> > >> > So I don't know how debug my code...
>
> > >> > 2010/11/12 Manfred Moser <mosa...@gmail.com>
>
> > >> >> Are you using this on Android or Blackberry? In any case... you will
> > >> >> have to debug your code.
>
> > >> >> manfred
>
> > >> >> On Fri, Nov 12, 2010 at 11:40 AM, Fabiano Bernardo
> > >> >> <f.bernardo...@gmail.com> wrote:
> > >> >> > I'm trying using this tutorial to set the communication but doesn't
> > >> >> > work
> > >> >> > and
> > >> >> > I cannot understand why!
>
> >http://www.drdobbs.com/mobility/208800166;jsessionid=OS1C1JO1ELA2PQE1...
>
> > >> >> > 2010/11/12 Manfred Moser <mosa...@gmail.com>
>
> > >> >> >> Use your ide to debug and single step through
>
> > >> >> >> On Fri, Nov 12, 2010 at 11:30 AM, Fabiano Bernardo
> > >> >> >> <f.bernardo...@gmail.com> wrote:
> > >> >> >> > but how can I debug with the bodyln?
>
> > >> >> >> > 2010/11/12 Manfred Moser <mosa...@gmail.com>
> > >> >> >> >> > 2010/11/12 Manfred Moser <mosa...@gmail.com>
>
> > >> >> >> >> >> So where does it throw the exception? Can you actually get
> > the
> > >> >> >> >> >> bodyIn
> > >> >> >> >> >> from the envelope when you set the debug?
>
> > >> >> >> >> >> manfred
>
> > >> >> >> >> >> On Fri, Nov 12, 2010 at 9:04 AM, Fabiano Bernardo
> > >> >> >> >> >> <f.bernardo...@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 <mosa...@gmail.com>
>
> > >> >> >> >> >> >> At a quick glance it all looks okay. How are you parsing
> > >> >> >> >> >> >> the
> > >> >> >> >> >> >> response?
> > >> >> >> >> >> >> I assume the problem lies in there..
>
> > >> >> >> >> >> >> On Fri, Nov 12, 2010 at 8:43 AM, Fab
> > >> >> >> >> >> >> <f.bernardo...@gmail.com>
> ...
>
> leggi tutto

Manfred Moser

unread,
Nov 15, 2010, 3:36:34 PM11/15/10
to ksoap2-...@googlegroups.com
Because something went wrong before bodyIn could be set up.. which
caused the exception.. and so you cant even start to parse the
response yet..

You have to figure out what caused the xmlpullparserexception

Fab

unread,
Nov 16, 2010, 4:35:10 PM11/16/10
to ksoap2-android
Do you have any idea if it is possible to write a Xlet in J2ME using
ksoap2-android instead of ksoap2-j2me-core-2.1.2 ?
> ...
>
> leggi tutto

Manfred Moser

unread,
Nov 16, 2010, 4:37:39 PM11/16/10
to ksoap2-...@googlegroups.com
ksoap2-android contains the J2me classes as well .. so you should be
fine. There is no really android specific code in there

But I dont know about xlet or j2me at all.. so ymmv

manfred

Fab

unread,
Nov 16, 2010, 4:40:20 PM11/16/10
to ksoap2-android
Do you know what does it mean this error?

java.lang.NoClassDefFoundError:
org.apache.commons.httpclient.methods.RequestEntity
at
org.ksoap2.transport.AndroidHttpTransport.getServiceConnection(Unknown
Source)
at org.ksoap2.transport.AndroidHttpTransport.call(Unknown Source)
> ...
>
> leggi tutto

Manfred Moser

unread,
Nov 16, 2010, 4:47:07 PM11/16/10
to ksoap2-...@googlegroups.com

Fabiano Bernardo

unread,
Nov 16, 2010, 4:59:47 PM11/16/10
to ksoap2-...@googlegroups.com
Ok, I know, but I have the same class at compile time and runtime.

An other thing:

if I have this request and response from my transport.requestDump and transport.response Dump it means that I'm doing the right connection with the web service?

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





--
F.B.

Manfred Moser

unread,
Nov 16, 2010, 5:03:46 PM11/16/10
to ksoap2-...@googlegroups.com
> An other thing:
> if I have this request and response from my transport.requestDump and
> transport.response Dump it means that I'm doing the right connection with
> the web service?

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
>>

Fabiano Bernardo

unread,
Nov 16, 2010, 5:06:44 PM11/16/10
to ksoap2-...@googlegroups.com
In the response I have the return that I want to have so I think that os meaningful.

The problem is that I cannot access to the response...because everything is null...only the bodyOut has the request...

2010/11/16 Manfred Moser <mos...@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 16, 2010, 5:08:59 PM11/16/10
to ksoap2-...@googlegroups.com
then you have to debug into the library code to see where things go wrong..

you got a stack trace? and what version are you using of ksoap2-android

Fabiano Bernardo

unread,
Nov 16, 2010, 5:18:29 PM11/16/10
to ksoap2-...@googlegroups.com
when I have the XmlPullParserException I'm using the ksoap2-j2me-core-2.1.2.jar

when I have the NoClassDefError I'm using the ksoap2-android-full-2.1.2.jar, this file was a zip and I changed in jar but I don't know if it's correct...



2010/11/16 Manfred Moser <mos...@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 16, 2010, 5:20:33 PM11/16/10
to ksoap2-...@googlegroups.com
no .. its not. you need to unzip and use the jars in there in the libs
folder or add the dependncy as documented on the wiki if you are using
maven

>> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 16, 2010, 5:23:24 PM11/16/10
to ksoap2-...@googlegroups.com
Ok, but after the unzip I have a folder with the class files I don't have any jar...

2010/11/16 Manfred Moser <mos...@gmail.com>
>> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bernardo.it@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 16, 2010, 5:30:56 PM11/16/10
to ksoap2-...@googlegroups.com
oh.. wrong file. And very old version. Follow the instructions here
http://code.google.com/p/ksoap2-android/wiki/HowToUse

>> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 23, 2010, 3:20:57 PM11/23/10
to ksoap2-...@googlegroups.com
I have a problem if I download the zip file and than I extract the zip I don't have a jar but a folder named ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar

but its icon is a folder not a jar icon, so how can I have the correct jar?



2010/11/16 Manfred Moser <mos...@gmail.com>
>> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bernardo.it@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 23, 2010, 3:26:24 PM11/23/10
to ksoap2-...@googlegroups.com
extract the folder.. there are jars inside... you need them all

>> >> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 23, 2010, 3:30:04 PM11/23/10
to ksoap2-...@googlegroups.com
This is what I have, I have the zip, I have the folder named .jar and I don't have any jar in.

2010/11/23 Manfred Moser <mos...@gmail.com>
>> >> >> >> >> On Tue, Nov 16, 2010 at 1:40 PM, Fab <f.bernardo.it@gmail.com>



--
F.B.
Schermata 2010-11-23 a 18.28.19.png

Manfred Moser

unread,
Nov 23, 2010, 5:14:31 PM11/23/10
to ksoap2-...@googlegroups.com
sorry.. my bad. That should contain all you need. Just add the one jar
to the lib folder..

>> >> >> >> >> >> <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 23, 2010, 9:03:26 PM11/23/10
to ksoap2-...@googlegroups.com
but how you can see I don't have any jar




2010/11/23 Manfred Moser <mos...@gmail.com>
>> >> >> >> >> >> <f.bernardo.it@gmail.com>



--
F.B.

Manfred Moser

unread,
Nov 23, 2010, 11:23:58 PM11/23/10
to ksoap2-...@googlegroups.com
the assembly jar file .. you downloaded.

>> >> >> >> >> >> >> <f.bern...@gmail.com>

Fabiano Bernardo

unread,
Nov 24, 2010, 7:57:25 AM11/24/10
to ksoap2-...@googlegroups.com
Sorry but I don't understand, you can see that I don't have any jar file, so please could you send me the jar (not the zip) that works correctly, by mail?

Thanks



2010/11/24 Manfred Moser <mos...@gmail.com>
>> >> >> >> >> >> >> <f.bernardo.it@gmail.com>



--
F.B.

Fabiano Bernardo

unread,
Nov 24, 2010, 8:52:04 AM11/24/10
to ksoap2-...@googlegroups.com
Ok I downloaded the jar with ubuntu and it's ok, I don't know why with mac it is different
--
F.B.

Fabiano Bernardo

unread,
Nov 24, 2010, 9:21:23 AM11/24/10
to ksoap2-...@googlegroups.com
Is it possible to have the source file of ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar?
--
F.B.

Manfred Moser

unread,
Nov 25, 2010, 10:00:42 PM11/25/10
to ksoap2-...@googlegroups.com
The source is in the same folder on the download url .. or you can
just download the whole ksoap2-android project.

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>

Reply all
Reply to author
Forward
0 new messages