title: How to sniff communication between SSL protected Metro web service and WCF client?
body: <p><strong>Environment</strong>: NetBeans 7.0.1, GlassFish 3.1</p>
  
  <p>I want to sniff the communication between a WCF (.NET Framework 4) client and a Metro (2.1.1) web service, and then check the messages to be sure everything is how I want it to be. The web service uses Transport Security (SSL). I already know of <a href="http://www.fiddler2.com/fiddler2/" rel="nofollow">Fiddler</a>, but I did not have any success using it; only HTTPS browser traffic was visible. Is there a way to set up Fiddler to capture traffic between my services? Is there any other way?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried to start client and server on different machines and then use Fiddler, but no success. I tried Wireshark to capture traffic, but did not have any success running both on localhost. If i tried them on different machines, all I could see was TCP data exchange between the services.</p>
  
  <p>On localhost + Wireshark, the packet counter next to the interfaces remained the same however I was calling the service lots of times.</p>
  
  <p><strong>UPDATE2</strong></p>
  
  <p>Tried to set up the proxy for NetBeans manually in the options, and programatically, but no success:</p>
  
  <pre><code>System.setProperty("http.proxyHost", "localhost"); 
  System.setProperty("http.proxyPort", "8888"); 
  System.setProperty("https.proxyHost", "localhost"); 
  System.setProperty("https.proxyPort", "8888"); 
  </code></pre>
  
  <p>Tried to start GlassFish with these JVM options, but no :( :</p>
  
  <pre><code>&lt;jvm-options&gt;-Dhttp.proxyHost=localhost&lt;/jvm-options&gt;
  &lt;jvm-options&gt;-Dhttp.proxyPort=8888&lt;/jvm-options&gt;
  &lt;jvm-options&gt;-Dhttps.proxyHost=localhost&lt;/jvm-options&gt;
  &lt;jvm-options&gt;-Dhttps.proxyPort=8888&lt;/jvm-options&gt;
  </code></pre>