ADB, nillable attribut in complextype elements and error
--------------------------------------------------------
Key: AXIS2-1617
URL: http://issues.apache.org/jira/browse/AXIS2-1617
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb
Affects Versions: 1.1
Environment: axis2,tomcat5.5,jdk1.5, win xp
Reporter: vladi vladii
When I try to return null value with any element in following type, then there
must be problem in axis libraries. I use ADB and in previous version it worked
correctly. I m trying last Axis2 release - 1.1. RC2.
I have this type(all elements in it are nillable):
<xs:complexType name="tuser">
<xs:sequence>
<xs:element name="user_name" type="tns:tuser_name" nillable="true"/>
<xs:element name="email" type="tns:temail" nillable="true"/>
<xs:element name="telephone" type="tns:ttelephone" nillable="true"/>
<xs:element name="fax" type="tns:tfax" nillable="true"/>
<xs:element name="lang" type="tns:tlang" nillable="true"/>
<xs:element name="ico" type="tns:tico" nillable="true"></xs:element>
<xs:element name="address1" type="tns:taddress" nillable="true"/>
<xs:element name="address2" type="tns:taddress" nillable="true"/>
<xs:element name="address3" type="tns:taddress" nillable="true"/>
<xs:element name="address4" type="tns:taddress" nillable="true"/>
<xs:element name="dic" type="tns:tdic" nillable="true"></xs:element>
<xs:element name="contact_person" type="tns:tcontact_person"
nillable="true"></xs:element>
<xs:element name="bank_account" type="tns:tbank_account"
nillable="true"></xs:element>
<xs:element name="proc_info" type="tns:tproc_info"
nillable="true"></xs:element>
<xs:element name="todo_info" type="tns:ttodo_info"
nillable="true"></xs:element>
<xs:element name="agreement_no" type="tns:tagreement_no"
nillable="true"></xs:element>
<xs:element name="sigla" type="tns:tsigla" nillable="true"/>
<xs:element name="center_id" type="xs:int" nillable="true"></xs:element>
</xs:sequence>
</xs:complexType>
This error is returned,when to any element is null value assigned:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>java.lang.RuntimeException: testValue cannot be null
!!</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]