[ 
http://issues.apache.org/jira/browse/AXISCPP-776?page=comments#action_12331771 
] 

nadir amra commented on AXISCPP-776:
------------------------------------

 Manohar,

Can you redo test? This is now hopefully fixed. Combination of fixing the 
client tests so that the following defines are used when defining long long 
values to be used in test cases:

#ifdef WIN32
      #define LONGLONGVALUE(value) value##I64
      #define UNSIGNED_LONGLONGVALUE(value) value##UI64
#else
      #define LONGLONGVALUE(value) value##LL
      #define UNSIGNED_LONGLONGVALUE(value) value##ULL
#endif

in conjunction with the update to 
NonNegativeInteger::deserializeNonNegativeInteger() so that it now performs the 
deserialization instead of calling Integer class to do the deserialization.

> XSD_integer type is not serialized or deserialized properly on AIX  platform
> ----------------------------------------------------------------------------
>
>          Key: AXISCPP-776
>          URL: http://issues.apache.org/jira/browse/AXISCPP-776
>      Project: Axis-C++
>         Type: Bug
>   Components: XSD Types
>     Versions: current (nightly)
>     Reporter: Manohar
>     Assignee: nadir amra

>
> when given maxInclusive and minInclusive values as inputs for XSD_integer 
> type these values are not serialized properlly.  When the input is given as 
> 9223372036854775807 the result is 4294967295 and  when  given the input as 
> -9223372036854775808 the result  is 0.
> Following code shows the problem.
>         sprintf(endpoint, "%s", url);
>         XSD_integer* ws = new XSD_integer(endpoint);
>         xsd__integer result = 
> ws->asNonNillableElement((xsd__integer)9223372036854775807);
>         cout << "non-nillable element=" << result << endl;
>         result = ws->asNonNillableElement((xsd__integer)-9223372036854775808);
>         cout << "non-nillable element=" << result << endl;
> The same problem happens with XSD_long, XSD_nonPositiveInteger  and 
> XSD_nonNegativeInteger types as well. 
> XSD_integerClient.cpp  testcase  shows this problem.
> Regards
> Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to