Axis2-C
  1. Axis2-C
  2. AXIS2C-1357

axis2/c configuration file has to be named axis2.xml

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.7.0
    • Component/s: core/engine
    • Labels:
      None
    • Environment:
      windows XP

      Description

      It seems that I can only use the name axis2.xml for the axis2/c configuration file. I can specify different folds and axis2/c will look for axis2.xml in that fold. I can also specify a file path ended with axis2.xml. All works fine. But axis2/c will fail to create a wb service client if I specify a full file path with a name different from axis2.xml.

      I think this needs to be fixed. In my environment, my web service client needs to connect to several web service providers with different configurations, it would be convenient if I can create several config files with different names.

      Thanks!

        Activity

        Hide
        Nandika Jayawardana added a comment -

        axis2_build_conf_ctx_with_file function can be used to specify any xml file name with axis2 entries. Then the created configuration context can be passed to service client to create the service client. This will resolve the issue.

        conf_ctx = axis2_build_conf_ctx_with_file(env,configuration_xml_file);
        svc_client = axis2_svc_client_create_with_conf_ctx_and_svc(env, NULL, conf_ctx, NULL);

        I fixed a minor issue in axis2_build_conf_ctx_with_file function to make it work.

        Show
        Nandika Jayawardana added a comment - axis2_build_conf_ctx_with_file function can be used to specify any xml file name with axis2 entries. Then the created configuration context can be passed to service client to create the service client. This will resolve the issue. conf_ctx = axis2_build_conf_ctx_with_file(env,configuration_xml_file); svc_client = axis2_svc_client_create_with_conf_ctx_and_svc(env, NULL, conf_ctx, NULL); I fixed a minor issue in axis2_build_conf_ctx_with_file function to make it work.

          People

          • Assignee:
            Nandika Jayawardana
            Reporter:
            Frank Zhou
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development