Skip to Content
Author's profile photo Praveen Gandepalli

HTTP tracing in SOAP receiver adapters with TraceHTTP module parameter

Introduction

When we call external web services from PI using SOAP adapter if we want to see plain soap request and response including HTTP request headers is not possible unless if we use TCPGW tool as mentioned in this blog. But from starting PI 7.31 SP09 we can achieve this by setting the parameter TraceHTTP for the module XISOAPAdapterBean in SOAP receiver channel.


Set the Module Parameter in SOAP Receiver Adapter

TraceHTTP.jpg

The following severity levels we can configure for parameter TraceHTTP:

/wp-content/uploads/2015/10/severity_818027.jpg


Download The File From PI Server
The trace will be written to the following directory in PI server

  • Directory: /usr/sap/PID/DVEBMGS00/j2ee/cluster/server0/log/pi_http
  • File name scheme is:  PI_HTTP.<party.<service>.<channel>

TraceFile.jpg


Analyze the trace file in logViewer application in NWA

Open NWA->Troubleshooting->Logs and Traces -> Log Viewer

ExpertView.jpg

ExpertLogViewer.jpg

SOAP Request Headers:

SoapHeader.jpg

References

HTTP Tracing for PI Receiver Adapters (New) – What’s New in SAP NetWeaver 7.3 EHP1 (Release Notes) – SAP Library

1904944 – *NF* Client side HTTP tracing for SAP PI receiver adapters


Conclusion

With this approach we can troubleshoot soap calls with plain soap request and response when we encounter error in our scenarios without external tools like TCPGW which we used before.

I hope this helps.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Iñaki Vila
      Iñaki Vila

      Hi Praveen,

      I didn't know this new feature. It will be very useful to debug the calls and we can avoid to use the TCPGW tool that at least in my case it supposes issues and several telephone calls with the basis team 🙂

      Thank you for share your knowledge about this feature!

      Regards.

      Author's profile photo Praveen Gandepalli
      Praveen Gandepalli
      Blog Post Author

      Thanks for the comment Inaki

      Author's profile photo Benjamin Kim
      Benjamin Kim

      Hi Praveen,

      what if using http receiver adapter instead of soap?,  is possible ?

      Thank you

      Regards.

      Author's profile photo Praveen Gandepalli
      Praveen Gandepalli
      Blog Post Author

      Hi David,

      Yes it is possible, for HTTP_AAE check below sap note:

      2157425 - New Feature: Client side HTTP Tracing for HTTP_AAE adapter


      Regards,

      Praveen.

      Author's profile photo Former Member
      Former Member

      Thanks for sharing this. This is definitely going to come in handy.

      Author's profile photo Former Member
      Former Member

      Hi Praveen

      Can we use this for SOAP Axis Receiver?

      I am using these modules afreq, xireq, wssec, trp, xires and afres. If I am to use then where should I use this module. Mine is a synchronous SOAP receiver scenario

      Author's profile photo Michael Sargent
      Michael Sargent

      Thanks Praveen.  I am using REST adapter and have installed XPI Inspector on SAP PO Java Stack only to achieve full tracing.  I recommend this tool for whomever wants to trace any http/https comms.

      SAP Support note 1514898 XPI Inspector for troubleshooting XI.