Problem with unsignedInt and unsignedShort

Rogelio Blanco <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAPvp9ftd+P3Xwag=TmiL_d5C-7aRpQfAe=XB9Z1ALhvODM-Z=Q@mail.gmail.com>
Hello everyone,

I have the current Axis2 library version 1.6.2 and we need to import a xsd
in the WSDL in order to support phone number formats.

Here is the link if the xsd file:
http://www.codesynthesis.com/projects/xsstl/xsstl/phone-number.xsd

The issue with this XSD file is that in some properties used UnsignedInt
and UnsignedShort, the problem comes when axis 2 generate the classes to
support these new types.  For example, bellow you will find the method
generated by Axis2 which has a compilation error (I saw the source code and
seems that ConverterUtil only support compare method with UnsignedLong but
do not support for short or int)

So, is the compare methods for short and int deprecated or there is a bug
in the axis2 module?

Thanks for you help...

 /**
                               * Auto generated setter method
                               * @param param PhoneAreaCode
                               */
                               public void
setPhoneAreaCode(org.apache.axis2.databinding.types.UnsignedInt param){

                                                if
(org.apache.axis2.databinding.utils.ConverterUtil.compare(param,
"99999") <= 0){

this.localPhoneAreaCode=param;
                                                }
                                                else {
                                                    throw new
java.lang.RuntimeException();
                                                }

                                                if
(org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){

this.localPhoneAreaCode=param;
                                                }
                                                else {
                                                    throw new
java.lang.RuntimeException();
                                                }


                               }


-- 
***Rogelio Blanco Rojas*

Scrum Master

Voice

(506) 8816 3359

Skype

rogelio.br

Email

[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.