You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by "KURO@RIMNET" <ku...@ki.rim.or.jp> on 2002/02/08 17:22:31 UTC
StringDeserializer does not return null String.
Hello,
In nightly build version, null string is serialized by
SoapEncUtils#generateNullStructure.
But String Deserialiser does not return null string.
current StringDeserializer(StringDeserializer.java) code:
Element root = (Element)src;
String value = DOMUtils.getChildCharacterData(root);
return new Bean(String.class, value);
following code seems to work good.
Element root = (Element)src;
if (SoapEncUtils.isNull(root))
{
return new Bean(String.class, null);
} else {
String value = DOMUtils.getChildCharacterData(root);
return new Bean(String.class, value);
}
//Kuro