You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Dushan Sachinda Abeyruwan (JIRA)" <ji...@apache.org> on 2013/07/13 19:59:48 UTC

[jira] [Updated] (SYNAPSE-936) Need an Implementation of the HttpGetRequestHandler Interface for the PassThrough Transport

     [ https://issues.apache.org/jira/browse/SYNAPSE-936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dushan Sachinda Abeyruwan updated SYNAPSE-936:
----------------------------------------------

    Attachment: patch_get_processor_basic.txt

Hi
 Please find the Get processor basic implementation, did test with RESTful get invocation with PPT and was able to access those the services,
  mean time I have noticed that there still bug exiting please refer the following configuration

<api xmlns="http://ws.apache.org/ns/synapse" name="RestAPI" context="/jaxrs">
   <resource methods="GET" uri-template="/orders/{id}">
      <inSequence>
         <log/>
         <send>
            <endpoint>
               <address uri="http://localhost:9765/jaxrs_sample_02/services/Starbucks_Outlet_Service"/>
            </endpoint>
         </send>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </resource>
   <resource methods="POST">
      <inSequence>
   
         <send>
            <endpoint>
               <address uri="http://localhost:9765/jaxrs_sample_02/services/Starbucks_Outlet_Service"/>
            </endpoint>
         </send>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
   </resource>
</api>

client invokes,

curl -v -X GET  http://localhost:8280/jaxrs/orders/123


monitored via tcpmon

GET /jaxrs_sample_02/services/Starbucks_Outlet_Service/jaxrs/orders/123 HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: */*
Host: 127.0.0.1:9765
Connection: Keep-Alive

and if closely looking to the issue [/jaxrs_sample_02/services/Starbucks_Outlet_Service/jaxrs/orders/123 HTTP/1.1]
] prefix rendering is wrong, instead it should be rendered as 

[/jaxrs_sample_02/services/Starbucks_Outlet_Service/orders/123 HTTP/1.1]

I know this is a known issue in earlier  API implementation and belive the patch has been provided, so we better apply those patches ASAP.

Thanking,
Dushan

                
> Need an Implementation of the HttpGetRequestHandler Interface for the PassThrough Transport
> -------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-936
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-936
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: NIGHTLY
>            Reporter: Hiranya Jayathilaka
>            Priority: Blocker
>         Attachments: patch_get_processor_basic.txt
>
>
> Currently there is no default implementation for the above interface and hence the PT transport cannot handle any GET requests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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