Question
HCL Technologies
LK
Last activity: 12 Jul 2017 7:35 EDT
Connect-Rest Fail
Hello,
I have created a connector to connect with REST service that contain in the server side. I haven't any permission with server side. When i try to connect with the service,It failed.So how can i find reason for that?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
TCS
IN
Hi Sahan,
You can enable the tracer and see in which step the error has occurred. This will give you an idea where the problem lies.
Pegasystems Inc.
US
Hi Sahan,
You may try following steps to troubleshoot:
1. Check if the REST endpoint is up.
2. Open your connector rule and test the connectivity.
3. Run the rule and trace it to check the failure point or step where it has failed.
Thanks,
Mukul
HCL Technologies
LK
Thanks for reply.
Is there any way to check that the external server correctly ping with our local server?Something like creating a socket.
Pegasystems Inc.
US
Try running 'curl' or 'wget' from your PRPC server with the endpoint URL to see if there is any response coming back.
Pegasystems Inc.
US
Hi Sahan,
You can try tcpmon or any other network tracing tool to check the connectivity. Fidler is an another option.
Thanks,
Mukul
HCL Technologies
LK
Can I know how to create a socket for external server with SSL?
Pegasystems Inc.
GB
The following Java code (modify it as necessary with any additional flags needed) may help test your endpoint.
try {
oLog.infoForced("Java Version:"+System.getProperty("java.version"));
oLog.infoForced("jsse.enableSNIExtension:"+System.getProperty("jsse.enableSNIExtension"));
oLog.infoForced("Attempting to Connect to: "+s_url);
java.net.URL url=new java.net.URL(s_url);
javax.net.ssl.HttpsURLConnection con = (javax.net.ssl.HttpsURLConnection) url.openConnection();
con.connect();
}
catch(Exception e) { throw new PRRuntimeException(e); }
You will need to set up a 'local' (on the 'parameter tab') here 's_url' (type 'String') and set this to the endpoint address.
-
Gaurav Londhe
HCL Technologies
LK
Thank you.