[ 
https://issues.apache.org/jira/browse/XMLRPC-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481758
 ] 

Jochen Wiedmann commented on XMLRPC-138:
----------------------------------------

The xml-rpc specification says, in the section on scalar values:

    If no type is indicated, the type is string.

In other words, the <string> tag is optional. The section on arrays contains no 
indication, that scalar values within an array are treated different.

The concept of serializers was specifically developed so that you can create 
your own serializers, add them to a custom type factory and have it as you like.


> Error in xml write
> ------------------
>
>                 Key: XMLRPC-138
>                 URL: https://issues.apache.org/jira/browse/XMLRPC-138
>             Project: XML-RPC
>          Issue Type: Bug
>          Components: Source
>    Affects Versions: 3.0
>         Environment: Java
>            Reporter: Marcelo Grassi
>
> There is a issue in StringSerializer.java.
> The problem is when a parameter is an array of objects.
> When a object of this array is a String, the xmlrpc does not insert the 
> <string></string> tag.
> The xmp-rpc specification says that the tag must be inserted !
> I found the method where is the problem.
>       public void write(ContentHandler pHandler, Object pObject) throws 
> SAXException {
>               write(pHandler, null, pObject.toString());
>       }
> I changed the null parameter to constant STRING_TAG and then the tag was 
> inserted well.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to