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

recent wsdl2ws generates wrong/inconsistent prototypes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6 Alpha
    • 1.6 Alpha
    • Client - Stub
    • None
    • W2KSP4 JDK 1.5.0_06

    Description

      With the latest SVN code i observe the following problem not present in the AxisC 1.5 release:
      Using the attached WSDL method prototypes differ between header (.hpp) and source (.cpp) (also attached to this mail).
      More specifically, the input parameters are declared inconsistent, the output parameters consistent.
      The header reads
      void Login(t_Expiry Value0, t_Language Value1, t_PositiveInt Value2, t_Authentication* Value3, AXIS_OUT_PARAM t_Expiry ** OutValue0, AXIS_OUT_PARAM t_SessionToken ** OutValue1);
      The source reads
      void SessionManagementPortType::Login(xsd_int* Value0, xsdstring Value1, xsd_int* Value2, t_Authentication* Value3, AXIS_OUT_PARAM t_Expiry ** OutValue0, AXIS_OUT_PARAM t_SessionToken ** OutValue1)
      First in the header file for the input parameters typedefed types (t_Expiry ...) are used but typedefed to types (xsd__int ...) in the source file (maybe a cosmetic glitch but nevertheless not desirable).
      Second and more seriously the levels of indirection differ:
      With
      typedef xsd__int t_Expiry;
      typedef xsd__string t_Language;
      typedef xsd__int t_PositiveInt;
      the first parameter Value0 (for example) is an integer in the header but a pointer in the source.
      There is also an issue with the output parameters:
      OutValue1 is a t_SessionToken** in current SVN but a t_SessionToken* in release 1.5.

      Attachments

        1. SessionManagementPortType.cpp
          11 kB
          Franz Fehringer
        2. SessionManagementPortType.hpp
          1 kB
          Franz Fehringer
        3. durchstich.xsd
          7 kB
          Franz Fehringer
        4. durchstich.wsdl
          3 kB
          Franz Fehringer

        Activity

          People

            dicka Adrian Dick
            fehrin Franz Fehringer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: