Status 502: Connection refused while testing REST Service de

Posted by mdanwarh on 18-Feb-2016 07:07

Hi,

I am trying to test  REST Service developed using OpenEdge 11.6. I followed the steps mentioned in 

https://www.youtube.com/watch?v=HKotSX3qTfA

I am able get the xml when accessing http://localhost:8810/rest/CustomerOrderAppService?_wadl 

But, when I try to access it through I get the error : 502: Connection refused 

Please help!!!

Thanks in advance

Anwar

All Replies

Posted by Sanjeva Manchala on 18-Feb-2016 07:46

Hi Anwar,
 
Is the resource path shown in your WADL file is same as the one you entered in browser(\Customer)?
 
<resource path="/ReadCustomers">
<method name="GET">
<request>
<param name="filter" style="query" default="" type="xs:string"/>
</request>
<response status="204"/>
</method>
</resource>
 
In this case, the sample URI to access the resource is: localhost:8810/.../ReadCustomers
 
Hope this helps,
Sanjeev.

Posted by mdanwarh on 19-Feb-2016 07:39

Hi Sanjeev,

Thanks for the reply. It was due to some proxy issues.  Now its working fine.

Apart from proxy setting I had to copy my .r file in the following location

C:\OpenEdge\WRK\oepas1\webapps\ROOT\WEB-INF\openedge.

Posted by Sanjeva Manchala on 15-Mar-2016 05:38

Hi Anwar,
 
Usually for REST services Business Logic resides under AppServer folder of the project, and this Business Logic under AppServer folder gets published to “C:\OpenEdge\WRK\oepas1\openedge” folder.
 
Hope this helps,
Sanjeev.
 

This thread is closed