On Tue, Dec 29, 2009 at 12:13 AM, Li Ma <lim...@gmail.com> wrote:

> Any comment on this? I'm desperately waiting for an answer now.


use -Euwc option to generate wrapped classes.

or you can use Integer.MIN_VALUE as the null value.

thanks,
Amila.

>
> Thanks in advance!
>
> Li
>
>
> On Sun, Dec 27, 2009 at 8:59 PM, Li Ma <lim...@gmail.com> wrote:
>
>> Hi there,
>>
>> I'm upgrading from Axis1 to Axis2 now. In Axis1, method:
>> Integer getMyInt()
>> will be converted to:
>> Integer getMyInt();
>>
>> So I can return null to indicate special situation, such as value not
>> defined.
>>
>> But in Axis2, it's been change to:
>> int getMyInt();
>>
>> I know if I do not unwrap when do WSDL2Java, I can perform extra check on
>> weather the value has been assigned or not. But I have to unwrap the code,
>> otherwise, change of my existing code will be unbearable.
>>
>> Any idea how I can keep my Integer type?
>>
>> Thanks!
>>
>> --
>> Li Ma
>> lim...@gmail.com
>>
>>
>
>
> --
> Li Ma
> lim...@gmail.com
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Reply via email to