Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-776

XSD_integer type is not serialized or deserialized properly on AIX platform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • current (nightly)
    • 1.6 Alpha
    • XSD Types
    • None

    Description

      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

      Attachments

        Activity

          People

            nadiramra Nadir K. Amra
            cmanohar Manohar Kumar Chintala
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: