erickok / retrofit-xmlrpc

Typed XML-RPC support for Retrofit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Class attributes are added to XML nodes

alexsaalfeld opened this issue · comments

The node and the node of a struct are serialized with class attributes.
The XMLRPC interface I use does not accept that.

<methodName>tickets_session_init</methodName>
   <params class="java.util.ArrayList">
      <param>
         <value class="nl.nl2312.xmlrpc.types.StructValue">
            <struct>
               <member>
                [...]
               </member>
            </struct>
         </value>
      </param>
   </params>
</methodCall>

Thanks!

Yes, unfortunately this is a problem for the XML-RPC server.
There's also a stack overflow question related to this:
https://stackoverflow.com/questions/12113025/remove-class-attribute

Should be fixed. Thanks for the tip on the simple-xml TreeStrategy.

You can get the updated version already by using v1.2 as dependency version.