ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris McKay" <ch...@defacto.com.au>
Subject RE: No string type wrapping
Date Wed, 10 May 2006 10:13:56 GMT
For those of you who need to talk to a XML-RPC server that doesn't like the
lack of <string>...</string> tags, specifications be damned. It's a pretty
easy fix.

C

>From xml-rpc v2.0 source
At Line 225 in org/apache/xmlrpc/XmlWriter.java:

    public void writeObject(Object obj)
        throws XmlRpcException, IOException
    {
        startElement("value");
        if (obj == null)
        {
            throw new XmlRpcException
                (0, "null values not supported by XML-RPC");
        }
        else if (obj instanceof String)
        {
           startElement("string");
           chardata(obj.toString());
           endElement("string");
        }
        else if (typeDecoder.isXmlRpcI4(obj))



Mime
View raw message