You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Kishanthan Thangarajah (Created) (JIRA)" <ji...@apache.org> on 2012/02/18 05:35:59 UTC

[jira] [Created] (AXIS2-5247) REST functionality is broken in current trunk

REST functionality is broken in current trunk
---------------------------------------------

                 Key: AXIS2-5247
                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.6.1, 1.7.0
            Reporter: Kishanthan Thangarajah
             Fix For: 1.7.0
         Attachments: StockQuoteService.aar

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. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214811#comment-13214811 ] 

Hudson commented on AXIS2-5247:
-------------------------------

Integrated in Axis2 #1269 (See [https://builds.apache.org/job/Axis2/1269/])
    Applied patch for AXIS2-5247. (Revision 1291158)

     Result = ABORTED
sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest
* /axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/RESTfulServiceTest.java
* /axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/Stock.java
* /axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/StockService.java
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL2Constants.java
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/dispatchers/RequestURIBasedServiceDispatcher.java
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/namespace/Constants.java
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/wsdl/WSDLUtil.java

                
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>            Assignee: Kishanthan Thangarajah
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: AXIS2-5247.patch, StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Kishanthan Thangarajah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kishanthan Thangarajah updated AXIS2-5247:
------------------------------------------

    Attachment: AXIS2-5247.patch

I'm adding fix for this. Basically what i did was i compared the current trunk with 1.4.1 and implemented the needed changes to trunk. Introduced a method "inferEndpoint" which was missing in current trunk. Based on this fix I also added a integration test case to test the REST functionality of Axis2.
                
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5247.patch, StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Assigned] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Sagara Gunathunga (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  reassigned AXIS2-5247:
-----------------------------------------

    Assignee: Kishanthan Thangarajah
    
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>            Assignee: Kishanthan Thangarajah
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5247.patch, StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Resolved] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5247.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.2

Patch available on r1291158. 
                
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>            Assignee: Kishanthan Thangarajah
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: AXIS2-5247.patch, StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Kishanthan Thangarajah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kishanthan Thangarajah updated AXIS2-5247:
------------------------------------------

    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. 


  was:
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. 


    
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5247.patch, StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Kishanthan Thangarajah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210806#comment-13210806 ] 

Kishanthan Thangarajah commented on AXIS2-5247:
-----------------------------------------------

After reading this [1] tutorial, I tried this sample on Axis2 1.4.1. The above works without any errors in there.

Thanks,
Kishanthan.

[1] http://wso2.org/library/3726
                
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>             Fix For: 1.7.0
>
>         Attachments: StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210811#comment-13210811 ] 

Sagara Gunathunga  commented on AXIS2-5247:
-------------------------------------------

Above feature is developed on 1.4 branch and shipped with 1.4.1 version but never merge to trunk. I will review your patch and apply.   
                
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5247.patch, StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5247) REST functionality is broken in current trunk

Posted by "Kishanthan Thangarajah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kishanthan Thangarajah updated AXIS2-5247:
------------------------------------------

    Attachment: StockQuoteService.aar
    
> REST functionality is broken in current trunk
> ---------------------------------------------
>
>                 Key: AXIS2-5247
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5247
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1, 1.7.0
>            Reporter: Kishanthan Thangarajah
>             Fix For: 1.7.0
>
>         Attachments: StockQuoteService.aar
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org