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

Improvement for REST. Allows HTTP methods without post data to have the correct namespace associated by default. This default associated namespace can be defined in service.xml for each operation.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core/deployment
    • Affects REST requests.

    Description

      Suports default namespace definition @ services.xml for each rest operation. The motivation behind this patch was to make REST requests without post data to be compatible with adb auto generated code with no modifications.

      The default namespace can be defined as in the following example:

      <operation name="get_message" uri_ns="my_namespace">
      <parameter name="wsamapping">urn:get_message</parameter>
      <parameter name="RESTMethod">GET</parameter>
      <parameter name="RESTLocation">message/

      {uuid}

      /</parameter>
      </operation>

      Note: there could still be an improvement, that would be to allow the definition of a global default namespace for all requests, in order to minimize services.xml configuration time. Individual operation default namespace would still have priority over global definition.

      Attachments

        1. op_ns_uri.diff
          3 kB
          Luis Bilo

        Activity

          People

            Unassigned Unassigned
            bilo Luis Bilo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified