Axis2
  1. Axis2
  2. AXIS2-5247

REST functionality is broken in current trunk

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1, 1.7.0
    • Fix Version/s: 1.6.2, 1.7.0
    • Component/s: kernel
    • Labels:
      None

      Description

      Axis2 REST functionality is not working as expected in current trunk. I tried a sample with a wsdl2 where I define whttp:location in HttpBinding to access the service operations in there. But im getting EPR not found for operation error in the response. For the attached sample i have defined the whttp:location for "getPrice" operation as whttp:location="price/

      {symbol}

      "

      Steps to reproduce:
      1. Deploy the attached service
      2. Access http://localhost:8080/axis2/services/StockQuoteService/getPrice?symbol=IBM, it will return a value
      3. Access http://localhost:8080/axis2/services/StockQuoteService/price/IBM, it will return an EPR not found error.

      1. AXIS2-5247.patch
        18 kB
        Kishanthan Thangarajah
      2. StockQuoteService.aar
        4 kB
        Kishanthan Thangarajah

        Activity

        Sagara Gunathunga made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.6.2 [ 12317875 ]
        Resolution Fixed [ 1 ]
        Sagara Gunathunga made changes -
        Assignee Kishanthan Thangarajah [ kishanthan ]
        Kishanthan Thangarajah made changes -
        Description Axis2 REST functionality is not working as expected in current trunk. I tried a sample with a wsdl2 where I define whttp:location in HttpBinding to access the service operations in there. But im getting EPR not found for operation error in the response. For the attached sample i have defined the whttp:location for "price" operation as whttp:location="price/{symbol}"

        Steps to reproduce:
        1. Deploy the attached service
        2. Access http://localhost:8080/axis2/services/StockQuoteService/price?symbol=IBM, it will return a value
        3. Access http://localhost:8080/axis2/services/StockQuoteService/price/IBM, it will return an EPR not found error.
        Axis2 REST functionality is not working as expected in current trunk. I tried a sample with a wsdl2 where I define whttp:location in HttpBinding to access the service operations in there. But im getting EPR not found for operation error in the response. For the attached sample i have defined the whttp:location for "getPrice" operation as whttp:location="price/{symbol}"

        Steps to reproduce:
        1. Deploy the attached service
        2. Access http://localhost:8080/axis2/services/StockQuoteService/getPrice?symbol=IBM, it will return a value
        3. Access http://localhost:8080/axis2/services/StockQuoteService/price/IBM, it will return an EPR not found error.
        Kishanthan Thangarajah made changes -
        Attachment AXIS2-5247.patch [ 12515066 ]
        Kishanthan Thangarajah made changes -
        Field Original Value New Value
        Attachment StockQuoteService.aar [ 12515065 ]
        Kishanthan Thangarajah created issue -

          People

          • Assignee:
            Kishanthan Thangarajah
            Reporter:
            Kishanthan Thangarajah
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development