Using a violinist with Java and Eclipse

I am trying to connect fiddler to a java unit test in Eclipse, so I can see a soap request when calling our web service ... It automatically works in our .NET utility, but there are some settings that should be applied for Java? thanks

+6
source share
1 answer

I have not tried this, but ...

Fiddler installs itself as a proxy by listening to localhost: 8888

You can configure Java to use a proxy server with http.proxyHost and http.proxyPort (see http://download.oracle.com/javase/6/docs/technotes/guides/net/proxies.html ).

So, if you go into Eclipse and specify the "VM" arguments as follows, it should route all traffic through Fiddler (which, of course, should already be running):

 -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888 

This assumes your application is using URLConnection . If it uses Apache HttpClient or some other library, you may need to check the documentation for that library.

+16
source

Source: https://habr.com/ru/post/897400/


All Articles