Hi,

please, is it correct,that Axis2 returns this exception? :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>java.lang.IllegalArgumentException</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


I have these type for example in wsdl with enumeration:


<xs:simpleType name="ttodo_info">

        <xs:restriction base="xs:string">
                <xs:enumeration value="A" />
                <xs:enumeration value="N" />
        </xs:restriction>
</xs:simpleType>


and this type used in complex type, but with nillable attribut:

<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="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>


So it should be correct to send null value in todo_info in tuser type, but
this exception is in ADB - Axis 2 thrown. 


             Vladi


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

Reply via email to