You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org> on 2007/03/21 09:43:32 UTC
[jira] Created: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
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
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
[jira] Updated: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariusz Woloncewicz updated AXIS2-2360:
---------------------------------------
Attachment: get-em-info-response.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
[jira] Updated: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (AXIS2-2360) xmlSchema optional attributes are
not handled properly
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482744 ]
Amila Chinthaka Suriarachchi commented on AXIS2-2360:
-----------------------------------------------------
what is the default value for use attribute?
currently I set it as required.
so in your case you have to set as use="optional"
and to set a null value to int it should be set to Integer.MIN_VALUE.
please have look at with a nightly build.
> 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>
> <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
[jira] Updated: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariusz Woloncewicz updated AXIS2-2360:
---------------------------------------
Attachment: get-em-info.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
[jira] Commented: (AXIS2-2360) xmlSchema optional attributes are
not handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482776 ]
Mariusz Woloncewicz commented on AXIS2-2360:
--------------------------------------------
According to http://www.w3.org/TR/xmlschema-1/ attributes should be optional by default.
"{required} true if the use [attribute] is present with - actual value- required, otherwise false."
> 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>
> <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
[jira] Updated: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariusz Woloncewicz updated AXIS2-2360:
---------------------------------------
Description:
Optional attributes are always serialized to empty default value. For example:
..
<xs:complexType name="GetEMInfoType">
<xs:sequence>
<xs:element name="requestParameters">
<xs:complexType>
<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.
was:
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.
> 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>
> <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
[jira] Resolved: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-2360.
-------------------------------------------------
Resolution: Fixed
fixed the issue with revision 523667
> 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>
> <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
[jira] Closed: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariusz Woloncewicz closed AXIS2-2360.
--------------------------------------
> 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>
> <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
[jira] Updated: (AXIS2-2360) xmlSchema optional attributes are not
handled properly
Posted by "Mariusz Woloncewicz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariusz Woloncewicz updated AXIS2-2360:
---------------------------------------
Attachment: EMServices.wsdl
> 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