How to capture SOAP messages from a Tomcat Java application to an external server?

I have a web application that runs inside Tomcat6 and sends SOAP messages to some external system via HTTPS.

I want to intercept these messages.

To do this, I turned on HTTPS capture in the "Tools → Violinist" dialog box.

Fiddler options

After restarting Fiddler, I can see HTTPS requests to several hosts (for example, Google, Evernote), but not to the external system that the Java application is talking to.

Then I added the JVM parameters -Dhtttps.proxyHost=ipv4.fiddler -Dhttps.proxyPort=80 to my startup configuration and restarted the application. Again, no SOAP requests were captured by Fiddler.

Idea configuration

What can I do to view SOAP messages (using Fiddler or some other tool)?

Update 1 (10.22.2013 12:35 MSK): When I change the JVM parameters to -Dhttps.proxyHost=ipv4.fiddler -Dhttps.proxyPort=80 -DproxySet=true -DproxyHost=ipv4.fiddler -DproxyPort=80 , I get an exception com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.UnknownHostException: ipv4.fiddler when sending the request.

+7
java soap fiddler
source share
1 answer

The correct JVM parameters were: -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=8888 .

+10
source share

All Articles