Hello,

I am using Axis2 1.1 and have an issue with the way that Axis2 stub deals
with the xsi:nil construct.

My server is OracleAS JAX-RPC implementation and the SOAP response is:

---
....
 <ns0:getCustomerResponseElement>
  <ns0:result>
   <ns0:firstName >Tug</ns0:firstName>
   <ns0:lastName
     xsi:nil="1" />
  </ns0:result>
 </ns0:getCustomerResponseElement>
...
-----

So based on the Schema definition and discussion of the Jira issue :
http://issues.apache.org/jira/browse/AXIS2-2007 it is a valid way of
respresenting nil.

However the code generated by a wsd2java command only test the string
"true", I believe it will be great if both values could be tested:
....
 if (!"true".equals(reader.getAttributeValue("
http://www.w3.org/2001/XMLSchema-instance","nil";))){
....
So it does not catch when the value is xsi:nil="1".

Should I log a JIRA issue?

Regards
Tug

Reply via email to