// with this field. If it's an attribute, skip it. If it's
// an element, use whatever qname is in there. If we can't
// find any of this info, use the default.
if (typeDesc != null) {
FieldDesc field = typeDesc.getFieldByName(propName);
if (field != null) {
if (!field.isElement())
continue;
// If we're SOAP encoded, just use the local part,
// not the namespace. Otherwise use the whole
// QName.
if (isEncoded) {
qname = new QName(
field.getXmlName().getLocalPart());
} else {
qname = field.getXmlName();
}
isOmittable = field.isMinOccursIs0();
}
}
if (qname == null) {
// Use the default...