axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mariusz Woloncewicz (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2360) xmlSchema optional attributes are not handled properly
Date Wed, 21 Mar 2007 09:01:33 GMT

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

Mariusz Woloncewicz updated AXIS2-2360:
---------------------------------------

    Attachment: request-parameters.xsd

> xmlSchema optional attributes are not handled properly
> ------------------------------------------------------
>
>                 Key: AXIS2-2360
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2360
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1.1, 1.1
>         Environment: java 5, win xp, solaris 10
>            Reporter: Mariusz Woloncewicz
>         Attachments: EMServices.wsdl, get-em-info-response.xsd, get-em-info.xsd, request-parameters.xsd
>
>
> Optional attributes are always serialized to empty default value. For example:
> ..
> <xs:complexType name="GetEMInfoType">
>     <xs:sequence>
>         <xs:element name="requestParameters">		
>             <xs:complexType name="RequestParametersType">
> 		<xs:attribute name="timeout" type="xs:int"/>             //attribute is not "use=required"!
> 	    </xs:complexType>
> 	</xs:element>
>     </xs:sequence>
> </xs:complexType>
> will be serialized by ADB to <requestParameters timeout=0"/> even if the timeout
was not explicitly set.
> Using XMLBeans results with empty <requestParameters> element and attributes ==
null by default. 

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message