[ http://issues.apache.org/jira/browse/AXIS-1712?page=all ] Davanum Srinivas reopened AXIS-1712: ------------------------------------
Please upload your WSDL and soap messages. thanks, dims > Adding empty elements to soap message: make a configurable option > ----------------------------------------------------------------- > > Key: AXIS-1712 > URL: http://issues.apache.org/jira/browse/AXIS-1712 > Project: Apache Axis > Type: New Feature > Components: Basic Architecture > Versions: 1.2RC2 > Reporter: Andrey Karachoun > > Currently Axis serialize empty elements to SOAP message with attribute > xsi:nil="true", for example: > ... > <arg1 xsi:type="xsd:int" xsi:nil="true"/> > ... > But sometimes it is necessary not to include such elements in the message > because server may fail to parse them, resulting in NumberFormatException > throw. > Both options are already implemented in Axis, but Axis is hardcoded to use > first option:. Here is this hardcode: > org.apache.axis.encoding.SerializationContext > 134: /** > 135: * Send an element with an xsi:nil="true" attribute for null > 136: * variables (if Boolean.TRUE), or nothing (if Boolean.FALSE). > 137: */ > 138: private Boolean sendNull = Boolean.TRUE; > org.apache.axis.message.RPCParam > 177: context.serialize(getQName(), // element qname > 178: null, // no extra attrs > 179: value, // value > 180: xmlType, // java/xml type > 181: Boolean.TRUE, wantXSIType); > I suggest making this option configurable. This will give greater flexibility > to developers because the only existing workaround is to patch Axis library. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira