Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks | - |
Not Applicable | - |
Resolution:
Description:
============
How to log SOAP request and response along with the the HTTP headers associated with them at the server side (BW)? Here, the client can be a BW process or an external client.
Environment:
==========
TIBCO BusinessWorks (BW): 5.9.x
TIBCO Runtime Agent: 5.7.x
Resolution:
==========
Following SOAP tracing properties logs the SOAP request and response in the file are as mentioned, yet the HTTP headers are not present.
--------------------------------------
java.property.com.tibco.plugin.soap.trace.inbound=true
java.property.com.tibco.plugin.soap.trace.outbound=true
java.property.com.tibco.plugin.soap.trace.filename=c:/bw_soapTracing.txt
java.property.com.tibco.plugin.soap.trace.pretty=true
java.property.com.tibco.plugin.soap.trace.stdout=true
--------------------------------------
To log SOAP request and response along with the HTTP associated headers at the server side (BW), perform the following steps:
1). Set bw.plugin.http.server.debug=true in .tra file.
2). Set java.extended.properties=-Xrs -Dlog4j.configuration=file:///<path_to_file>/log4j.xml
3). Copy attached log4j.xml to the <path_to_file>
4). Make sure that the following trace settings in .tra are set to true.
-------------------------------------
Trace.Task.*=true
Trace.Log=true
Trace.Debug.*=true
bw.engine.showInput=true
bw.engine.showOutput=true
-------------------------------------
5). Start the BW SOAP application from the command prompt then the HTTP. The headers should be in the console output.
6). You can also modify the .cmd (or .sh in Unix) file to redirect console output to file.