Author: jleroux
Date: Wed Apr 11 20:48:56 2012
New Revision: 1324995
URL:
http://svn.apache.org/viewvc?rev=1324995&view=revLog:
Reverting to 2 changes which slipped in at r1324989 (WIP...)
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java?rev=1324995&r1=1324994&r2=1324995&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericEntity.java Wed Apr 11 20:48:56 2012
@@ -461,7 +461,7 @@ public class GenericEntity extends Obser
}
boolean isNullString = false;
- if ("null".equals(value) || "[null-field]".equals(value)) { // keep [null-field] here but not sure it' used now
+ if ("null".equals(value) || "[null-field]".equals(value)) {
// count this as a null too, but only for numbers and stuff, not for Strings
isNullString = true;
}
@@ -1079,12 +1079,7 @@ public class GenericEntity extends Obser
element.setAttribute(name, value);
}
} else {
- element.setAttribute(name, "null");
- element.setAttribute("xsi:nil", "true");
- // I tried to put the schema in the envelope header (in createAndSendSOAPResponse)
- // resEnv.declareNamespace("
http://www.w3.org/2001/XMLSchema-instance", null);
- // But it gets prefixed and that does not work. So adding in each instance
- element.setAttribute("xmlns:xsi", "
http://www.w3.org/2001/XMLSchema-instance");
+ element.setAttribute(name, GenericEntity.NULL_FIELD.toString());
}
}