How to enable tracing REST Outbound calls in Siebel IP2017 and higher
For the Webservices using SOAP protocol there was straight way to trace the SOAP messages (https://docs.oracle.com/cd/E14004_01/books/EAI2/EAI2_WebServices49.html) and to see the transport. Oracle Siebel CRM introduced with the IP2016+ Version support for REST (https://docs.oracle.com/cd/E88140_01/books/PDF/RestAPI.pdf). There is a little documentation how can be the json payload seen and traced. As with the new version is also tomcat a component which needs to be installed on the siebel server, the tracing part is now done there.
1. activate the logging , set JBSLogLevel=5:
Go to siebel server, where the REST Outbound call is initiated. If you are using Linux, the path to config is as follows :
cd /app/siebel/sieb/applicationcontainer/webapps
vi configagent.properties
You see following config :
log4j.rootLogger=DEBUG, file log4j.appender.file.Level=ERROR log4j.appender.file.File=/app/siebel/sieb/applicationcontainer/ log4j.appender.file.MaxFileSize=10MB log4j.appender.file.MaxBackupIndex=10 JBSLogLevel=5 [CertificateInfo] ClientAuth=True KeyStoreType=JKS KeyStoreName=/app/siebel/sieb/applicationcontainer/siebelcerts/ggg.jks KeyStorePassword=Uxx TrustStoreType=JKS #TrustStoreName=/app/siebel/sieb/applicationcontainer/siebelcerts/ld1c0592_truststore.jks TrustStorePassword=xx
2. Restart the tomcat server
3. The logs and traces can be found in :
/app/siebel/sieb/applicationcontainer/logs/siebeljbs_16.log
4. The log can see like this :
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.304] [JBSFactory] Borrowing the object from JMS Pool with SiebelTaskID: ld1c0592.ucorporate.corporatecorp.test23068705128133com.siebel.apps.shared.xmlp.RESTOutboundBusvc
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.304] [JBSFactory] Creating the new object in JBS Pool with SiebelTaskID: ld1c0592.ucorporate.corporatecorp.test23068705128133com.siebel.apps.shared.xmlp.RESTOutboundBusvc
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.311] [RESTOutbound] Target URL : https://sap.gateway.test/siebel/v1.0/tasks
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.311] [RESTOutbound] UserName : null
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.315] [RESTOutbound] calling conversion module to convert PS into JSON
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.316] [RESTOutbound] converted JSON : {"DistributeToAgentRONATimeoutInSeconds":"10","Caller":"jan.musterman","Service":"sip:assi_mail_n@corporateins.ch","ExternalTaskId":"1-6DGMEA","DistributeToAgent":"true","Required":{"Audio":"false","Video":"false","Im":"false","DesktopSharing":"false","ConversationContext":"false"}}
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.317] [RESTOutbound] calling HttpCaller module for outbound call
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.371] [RESTOutbound] response from outbound call : <!doctype html><html lang="en"><head><title>HTTP Status 404 â Not Found</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 â Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Not Found</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/8.5.23</h3></body></html>
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.372] [RESTOutbound] calling conversion module to convert JSON into PS
[SIEBEL INFO] Thread[http-nio-9012-exec-37,5,main] [2019-02-21 09:00:18.372] [JBSFactory] Returning the Object to JMS Pool with SiebelTaskID: ld1c0592.ucorporate.corporatecorp.test23068705128133com.siebel.apps.shared.xmlp.RESTOutboundBusvc
[SIEBEL INFO] Thread[http-nio-9012-exec-2,5,main] [2019-02-21 09:01:10.049] [JBSFactory] Returning the Object to JMS Pool with SiebelTaskID: ld1c0592.ucorporate.corporatecorp.test36700190128458com.siebel.eai.jms.JMSBusinessService If you need further information or consulting, contact us.