mariokick / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

Underscore properties cause deserializaton to fail #148

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a mapping from the wsdl using properties with underscore character in 
the name: "area_description"
2. send the request 
3. A `unknown property "area_description" ` Exception is thrown

What is the expected output? What do you see instead?
I expect mappings composed of properties with underscore in the name to be 
deserialized
Instead I get this stack trace:

01-03 11:06:44.831: W/System.err(22339): java.lang.RuntimeException: Unknown 
Property: area_description
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.serialization.SoapSerializationEnvelope.readSerializable(SoapSerializ
ationEnvelope.java:200)
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.serialization.SoapSerializationEnvelope.readInstance(SoapSerializatio
nEnvelope.java:444)
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.serialization.SoapSerializationEnvelope.read(SoapSerializationEnvelop
e.java:387)
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.serialization.SoapSerializationEnvelope.readUnknown(SoapSerialization
Envelope.java:273)
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.serialization.SoapSerializationEnvelope.read(SoapSerializationEnvelop
e.java:389)
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEn
velope.java:151)
01-03 11:06:44.831: W/System.err(22339):    at 
org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:140)
01-03 11:06:44.841: W/System.err(22339):    at 
org.ksoap2.transport.Transport.parseResponse(Transport.java:116)
01-03 11:06:44.841: W/System.err(22339):    at 
org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:259)
cut
cut
01-03 11:06:44.841: W/System.err(22339):    at 
java.lang.Thread.run(Thread.java:856)

What version of the product are you using? On what operating system?
ksoap2 3.0.0 rc4 / Android 4.2.1

Please provide any additional information below.

Original issue reported on code.google.com by motosa...@gmail.com on 3 Jan 2013 at 10:14

GoogleCodeExporter commented 8 years ago
Could you provide a unit test code that fails and potentially a fix? 

Original comment by mosa...@gmail.com on 4 Jan 2013 at 5:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Right now I'm feeling really ashamed: turns out it was a missing break; in a 
switch statement
I still do noob mistakes like this sometimes

Your code works just fine, sorry for wasting your time
If you ever pass by Verona drop me a line and I'll offer you a beer

Marco

Original comment by motosa...@gmail.com on 4 Jan 2013 at 3:47

GoogleCodeExporter commented 8 years ago
No problem.. i am glad it works

Original comment by mosa...@gmail.com on 4 Jan 2013 at 5:15