This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

(SM) Support Tip: How to configure proxy for out-bound webservice in Service Manager

Service Manager is integrated with any 3rd party solution through webservice and there are two kinds of webservice communication, in-bound and out-bound.

In-bound webservice  : SM Server(webservice provider) <-- 3rd party solution (webservice consumer)

Out-bound webservice : SM Server(webservice consumer) --> 3rd party solution(webservice provider)

For out-bound webservice, it is required to configure proxy properly according to the location of target systems

 

In Service Manager, we can use common java parameters for proxy setting.

<sm.ini>

JVMOption1:-Dhttp.proxyHost=proxyserver.domain.company.com

JVMOption2:-Dhttp.proxyPort=<port number, e.g. 8088>

JVMOption3:-Dhttp.nonProxyHosts="*.domain.company.com|localhost"

 

When target systems are on the internet and intranet both, it needs to configure nonProxyHosts exactly.

 

These parameters can be used in sm.cfg if setting proxy only for some of dedicated servlets

All parameters of sm.ini affects all of servlets.

Tags:

  • 0

    we added follwing one in sm.in as are trying to reach external web services from service manager but we can see traffic not passing thru proxy

    JVMOption2:-Dhttp.proxyHost=185.46.212.88
    JVMOption3:-Dhttp.proxyPort=80

    log found in sm 

     

    12924( 10288) 11/03/2020 13:13:13 JRTE E Error in doHttpRequest()

    java.net.ConnectException: Connection timed out: connect

                    at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)

                    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

                    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

                    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

                    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

                    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

                    at java.net.Socket.connect(Socket.java:589)

                    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)

                    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)

                    at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)

                    at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)

                    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)

                    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)

                    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

                    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)

                    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)

                    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

                    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)

                    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)

                    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259)

                    at com.hp.ov.sm.server.utility.HttpClient.doHttpRequest(HttpClient.java:173)

                    at com.hp.ov.sm.server.utility.HttpClient.doHttpRequest(HttpClient.java:93)

                    at com.hp.ov.sm.server.utility.TopazThread.handleRequest(Native Method)

                    at com.hp.ov.sm.server.utility.TopazThread.processRequest(TopazThread.java:413)

                    at com.hp.ov.sm.server.utility.TopazThread.process(TopazThread.java:339)

                    at com.hp.ov.sm.server.utility.TopazThread.run(TopazThread.java:354)

    12924( 10288) 11/03/2020 13:13:13  RTE E Error calling method: doHttpRequest  in class: com/hp/ov/sm/server/utility/HttpClient Exception (java.net.ConnectException: Connection timed out: connect)

    12924( 10288) 11/03/2020 13:13:13  RAD E Error calling method: doHttpRequest  in class: com/hp/ov/sm/server/utility/HttpClient Exception (java.net.ConnectException: Connection timed out: connect)

     

  • 0 in reply to 

    need to know reason for traffic not able to pass through prox and timedout error

  • 0

    does this applicable also for RestAPI. as we are trying to reach restapi but it is not using the proxy. we checked proxy no connection being found form service manager.