You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by ogl92 <og...@netscape.net> on 2004/02/12 11:29:11 UTC

bug #10689

Hi,

I don't know if this mailing list concern bugs about XML-RPC package, 
then I try to do short and all my apologies if I do a wrong post.

The XML-RPC specs says that parameters of type String have to be 
enclosed in <string> tags.
But the spec says also that "If no type is indicated, the type is string."

I met troubles with some xml-rpc servers (not mine) and I couldn't 
contact all folks who develop services.
What do you think about a new static variable in XmlRpc class like 
XmlRpc.encloseString : boolean. The default value need to be false to 
obtain the same working we have now.
With this we would be more flexible.

thank by advance,
regards

The code could be :
XmlRpc.java
-----------
.../...
else if (obj instanceof String) {
if(XmlRpc.encloseString) {
startElement("string");
chardata(obj.toString());
endElement("string");
}
else {
chardata(obj.toString());
}
}
else if (obj instanceof Integer) {
.../...
}