[
https://issues.apache.org/jira/browse/AXIS2-5468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898919#comment-16898919
]
Ralf Hauser commented on AXIS2-5468:
------------------------------------
it can be fixed manually:
public void setPostOfficeBoxNumberType(
org.apache.axis2.databinding.types.UnsignedInt param) {
if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param,
"9999") <= 0) {
this.localPostOfficeBoxNumberType = param;
...
becomes
public void
setPostOfficeBoxNumberType(org.apache.axis2.databinding.types.UnsignedInt
param){
int paramHere =
param.intValue();
if
(org.apache.axis2.databinding.utils.ConverterUtil.compare(paramHere, "9999") <=
0){
this.localPostOfficeBoxNumberType=param;
...
> Generated code for xsd:maxInclusive cause errors with
> org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "9999")
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-5468
> URL: https://issues.apache.org/jira/browse/AXIS2-5468
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.6.2
> Environment: eclipse helios, java6
> Reporter: Ralf Hauser
> Priority: Major
>
> Eclipse says: <<The method compare(int, String) in the type ConverterUtil is
> not applicable for the arguments (UnsignedInt, String)>>
> http://www.ech.ch/xmlns/eCH-0010/5/eCH-0010-5-0.xsd excerpt:
> <<
> <xs:simpleType name="postOfficeBoxNumberType">
> <xs:restriction base="xs:unsignedInt">
> <xs:maxInclusive value="99999999"/>
> </xs:restriction>
> </xs:simpleType>
> >>
> The code was generated with
> axis2-1.6.2/bin/wsdl2java.sh -uri file:///home/me/ju/ju.wsdl -p
> ch.admin.x.y -d adb -s
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]