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

rbla...@cecropiasolutions.com

Reply via email to