jangidipramod / android-xmlrpc

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

Unable to parse string when no <string> tag exists. #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a method returning a string, using Apache XML-RPC server & TomCat
2. Call on android.
3. Pick up your fresh, new, shiny error!

What is the expected output? What do you see instead?
Expected output should be the return value. Instead, an exception is 
thrown. This is caused by the NextTag(); call in public Object deserialize
(XmlPullParser parser) in XMLRPCSerializer.java. Because the XML-RPC 
specification doesn't REQUIRE <string></string in the response XML when a 
String is send. (Quote from http://www.xmlrpc.com/spec: 'If no type is 
indicated, the type is string.')

Because Apache XML-RPC is not sending the <string> tag, but instead 
something like this :

<?xml version="1.0"?>
<methodResponse>
  <params>
    <param>
        <value>I am missing my tag :(</value>
    </param>
  </params>
</methodResponse>

..an error occurs because no tag is found when trying to read the next tag.

What version of the product are you using? On what operating system?
Current version, Vista

Please provide any additional information below.

Original issue reported on code.google.com by wijnandw...@gmail.com on 10 Mar 2009 at 1:59

GoogleCodeExporter commented 9 years ago
yes you are right: i didn't see 'If no type is indicated, the type is string.'.

i'll fix it.

Original comment by psk...@gmail.com on 18 Mar 2009 at 1:19

GoogleCodeExporter commented 9 years ago
fixed: try it out

Original comment by psk...@gmail.com on 18 Mar 2009 at 2:07

GoogleCodeExporter commented 9 years ago

Original comment by psk...@gmail.com on 18 Mar 2009 at 2:17

GoogleCodeExporter commented 9 years ago
Hi, where can I download the fix?

Original comment by slash.ak...@gmail.com on 16 Apr 2009 at 4:10

GoogleCodeExporter commented 9 years ago
See the repository :-)

Original comment by wijnandw...@gmail.com on 16 Apr 2009 at 4:23

GoogleCodeExporter commented 9 years ago
How solve the parsing error in the code

Original comment by jahbromo on 10 Sep 2009 at 1:02