Infor Process Automation (IPA) communicates with other servers over the network – using for example the WebRun, Web Service, SQL Query, and Email activity nodes – but it lacks the ability to dump the network traffic for troubleshooting purposes. Here are my solutions.
Background
The WebRun activity node uses HTTP:
- HTTP request header
- HTTP request body
- HTTP response header
- HTTP response body
The Web Service activity node uses SOAP over HTTP:
- HTTP request header
- HTTP request body
- SOAP request header
- SOAP request body
- HTTP response header
- HTTP response body
- SOAP response header
- SOAP response body
The SQL Query activity node uses JDBC.
The Email activity node uses SMTP.
And IPA has other activity nodes for products such as Landmark, Lawson, ION, Cloverleaf.
IPA and Infor Process Designer (IPD) will only show a fraction of the network traffic. For example for the WebRun activity node it only shows the HTTP response body, and unfortunately it discards the rest of the useful information.
With Wireshark
Wireshark can naturally intercept traffic from IPA and IPD.
Here are my screenshots for the WebRun activity node:
We get the entire HTTP request (header and body) and HTTP response (header and body). From that traffic we learn useful information about the WebRun activity node. For example, we learn what is the User-Agent String being used, we learn that IPA only uses the POST method (not GET), we learn that IPA automatically adds a leading slash to the URL path even if we don’t want it, and we learn that some versions of IPA have a bug in the Content-Type that always sets it to application/x-www-form-urlencoded even if we set it to something else. And we have the rest of the data to do the troubleshooting we may need.
And here are my screenshots for the Web Service activity node:
We get the entire HTTP request (header and body), HTTP response (header and body), SOAP request (header and body), and SOAP response (header and body). From that traffic we learn useful information about the Web Service activity node. For example, we learn what is the User-Agent String being used, and we learn that IPA will send our private M3 user/password to a server on the Internet even if we didn’t specify it (be careful if you leave Configuration blank, that means Configuration main, and if you had set an M3 user/password for M3 Web Services). And we have the rest of the data to do the troubleshooting we may need. This will prove crucial for troubleshooting M3 Web Services.
Here is a screenshot for the Email activity node:
You can even decode JDBC traffic from the SQL Query activity node, including JDBC traffic from IPA to its database. For that, in Wireshark select Decode As > TDS.
You can also decrypt HTTPS traffic (encrypted) of internal servers for which you have the private keys, such as M3 Web Services. For that, you can follow my previous post on how to decrypt Smart Office HTTPS traffic. I haven’t applied it here yet as I don’t have the server’s private keys so I can’t show you if it works or not, but I’m confident it would work.
With Fiddler
Fiddler can also capture HTTP traffic from IPA/IPD but we have to tell the JVM to use a proxy. I’ve only tested this with IPD; I haven’t tested this with IPA yet, but I’m confident it would work.
Also, Fiddler only captures HTTP, it doesn’t capture JDBC/SMTP.
Also, Fiddler can intercept and decrypt HTTPS (encrypted) traffic.
To set a proxy for IPD, open the IPD ini files and add the following arguments for the JVM:
-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888
To decrypt HTTPS traffic you have to tell Fiddler to capture and decrypt HTTPS traffic, and you have to import Fiddler’s root certificate into the JVM used by IPD with the keytool:
And now you can intercept encrypted traffic from IPD as for example M3 Web Services in this screenshot:
Cleanup
After your troubleshooting, remember to remove the proxy arguments from the IPD ini files or IPD will break if you don’t have Fiddler running, and remember to remove the Fiddler DO_NOT_TRUST root certificate.
Summary
That was a brief illustration of how to intercept network traffic from Infor Process Automation and Infor Process Designer using Wireshark and Fiddler, and how to intercept and decrypt HTTPS traffic. This is very useful for me to troubleshoot the Web Run and Web Services activity nodes, specially for M3 Web Services.
That’s it! If you liked this, please follow this blog, leave your comments, and share around you.
One thought on “Intercept network traffic from Infor Process Automation”