Unable to connect to SAP system from SNOW(Integration Issue)

suchitra1
Tera Contributor

Hi Experts,

Here I have a requirement to extract some information from the SAP system and to populate it in the SNOW.I will be sending the Employee ID from SNOW to SAP and in the return requires the manager information from the SAP system and needs to populate in one of the Maintain item in the SNOW.

So while trying to connect the SAP system through Outbound web services(SOAP message),I am getting the below mentioned error.

I have   already provided the SNOW IP to the customer and they   allowed those IP inside their Firewalls.

But not getting anything from the error where is the cause so as its not connecting to the SAP system.

Appreciate your quick and sincere response on this.

Thanks in Advance!!

java.net.SocketTimeoutException: connect timed out

java.net.PlainSocketImpl.socketConnect(Native Method)

java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)

java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)

java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)

java.net.SocksSocketImpl.connect(SocksSocketImpl.java:365)

java.net.Socket.connect(Socket.java:527)

com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:577)

com.glide.communications.GlideSSLProtocolSocketFactory.createSocket(GlideSSLProtocolSocketFactory.java:141)

org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)

org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)

org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)

com.glide.communications.HTTPClient.executeMethod(HTTPClient.java:280)

sun.reflect.GeneratedMethodAccessor421.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

java.lang.reflect.Method.invoke(Method.java:597)

org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:239)

org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1201)

org.mozilla.javascript.gen.c308.call(sys_script_include.860655720a0a0b61002e116c36243127:103)

org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1201)

org.mozilla.javascript.gen.c47444.call(sys_script_include.b682fe0a0a0a0bd075b62d71a3690a69:185)

org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1201)

org.mozilla.javascript.gen.c47432.call(sys_script_include.170a6cb60a0a0b114776fbaee3d46612:207)

org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1201)

org.mozilla.javascript.gen.c47421.call(<refname>:4)

org.mozilla.javascript.gen.c47421.exec(<refname>)

com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:162)

com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:176)

com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:68)

com.glide.script.Evaluator.evaluateString(Evaluator.java:161)

com.glide.script.Evaluator.evaluateString(Evaluator.java:156)

com.glide.script.GlideRhinoHelper.evaluateAsString(GlideRhinoHelper.java:91)

com.glide.script.ActionScript.conditionalEval(ActionScript.java:80)

com.glide.script.ActionScript.execute(ActionScript.java:66)

com.glide.script.ActionScriptProcessor.processScript(ActionScriptProcessor.java:122)

com.glide.script.Action.process(Action.java:113)

com.glide.ui.RedirectTransaction.invokeAction(RedirectTransaction.java:413)

com.glide.ui.RedirectTransaction.handleActions(RedirectTransaction.java:382)

com.glide.ui.RedirectTransaction.inboundActions(RedirectTransaction.java:218)

com.glide.ui.RedirectTransaction.process(RedirectTransaction.java:87)

com.glide.ui.GlideServletUITransaction.process(GlideServletUITransaction.java:75)

com.glide.processors.Processor.runProcessor(Processor.java:358)

com.glide.processors.Processor.processTransaction(Processor.java:163)

com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:146)

com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:36)

com.glide.ui.GlideServlet$1.run(GlideServlet.java:408)

java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

java.lang.Thread.run(Thread.java:682)

10 REPLIES 10

Hi Suchitra,



Try using SOAPUI and check if you are getting "Connection Refused" error. If this is true then it means there is something wrong at SAP end because SOAPUI is outside ServiceNow and hence nothing wrong with ServiceNow. I was getting the same issue and the issue was at other end in their "End Point URL". Once they corrected that it worked fine for me.



Thanks


Ramandeep


I am getting unauthorized error in SOAP UI,Could you please advice me what is the next step I need to follow.


Is that related to authentication issue??



Thanks in Advance!!


Are you enteringcredentials before sending request to SAP?



Yes I have already provided the Authentication ID and credential under the Authorization section.


I am getting the below error in the response section.



<html>


<head>


  <title>Error Report</title>


  <style>


      td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}


      A:link {color : #0059AA;}


      A:visited {color : #999999;}


      A:active {color : #999999;}


  </style>


</head>


<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">


  <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">


      <tr bgcolor="#FFFFFF">


          <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>    401   Unauthorized</b></font></td>


      </tr>


      <tr bgcolor="#3F73A3">


          <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>


          <td height="23"><img width=1 height=1 border=0 alt=""></td>


          <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP NetWeaver Application Server  </b></font></td>


      </tr>


      <tr bgcolor="#9DCDFD">


          <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>


      </tr>


  </table>


  <br><br><br><br><br><br>


  <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>    Error: Unauthorized</b></font></p>


  <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>    <a href="https://wiki.sdn.sap.com/wiki/x/wIN3Cw">SAP Technology Troubleshooting Guide</a></b></font></p>


  <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table>


      <tr>


          <td valign="top"><b>  Details:</b></td>


          <td valign="top"><PRE>No details available.</PRE></td>


      </tr>


  </table></font></p>


</body>


</html>


Then may be you don't have the right credentials to access SAP web service. Check with SAP and tell them it shows unauthorized when you try connect to and see what they comes up with. Since you are not able to access this web service using SOAPUI which is external to Servicenow, hence it seems there is everything fine at serviceNow end and SAP has to check credentials or anything else at their end.



You also raise a ticket to HI and ask them to help.