[ 
https://issues.apache.org/jira/browse/AXIS2-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amila Chinthaka Suriarachchi resolved AXIS2-1617.
-------------------------------------------------

    Resolution: Fixed

we will repone this if you attach your wsdl (and skelton )and still have the 
problem.

as I understood (I guess) you have set nillable true for an any element and set 
it to null. in any element there is no nillble attribute. so you have to set it 
to minOccurs 0. 

> ADB, nillable attribut in complextype elements and error
> --------------------------------------------------------
>
>                 Key: AXIS2-1617
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1617
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: axis2,tomcat5.5,jdk1.5, win xp
>            Reporter: vladi vladii
>         Assigned To: Amila Chinthaka Suriarachchi
>
> 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to