supports for nillable

Feb 1, 2009 at 4:09 PM
line 29:(lines 94,97,103 similar with this)
xml += "<" + p + ">" + SOAPClientParameters._serialize(_pl[p]) + "</" + p + ">";

new code:
var serialized = SOAPClientParameters._serialize(_pl[p]);
if (serialized) {
    xml += "<" + p + ">" + serialized + "</" + p + ">";
}


line 40:
var s = "";

new code:
if(!o)
{
    return null;
}
var s = "";



but this code with out "nillable" tag check
May 5, 2010 at 1:46 PM

Thanks for this. It fixed a bug I was having.

Though, I think the null should be represented as empty string rather than word null this one generates to the serialized xml.

so the 'return null;' should be changed to 'return "";'