Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-864

Use of 'const' for arguments in setter methods of generated types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • wsdl2c tool
    • None

    Description

      In setter methods of the various types generated by the wsdl2c tool, I would like to see a const classifier on the inputs, especially in the case when the input is of type axis2_char_t.

      For example, for a LoginType I have a username which I can set. In the current version of the tool, the following prototype is generated:

      axis2_status_t AXIS2_CALL
      adb_LoginType_set_username(
      adb_LoginType_t* _LoginType,
      const axutil_env_t *env,
      axis2_char_t* arg_username);

      What would be better, however, is the following:

      axis2_status_t AXIS2_CALL
      adb_LoginType_set_username(
      adb_LoginType_t* _LoginType,
      const axutil_env_t *env,
      const axis2_char_t* arg_username);

      I generated the client stub with the following options on the wsdl2c tool: -uri myWSDL.wsdl -d adb -u

      Thanks for all the help and time in advance.

      Cheers,
      Frank

      Attachments

        Activity

          People

            Unassigned Unassigned
            frank@neokast.com Frank Huebbers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: