title: Can I capture clear text request SOAP envelope on a java axis2 client for https?
body: <p>I have a federal government (i.e. extremely security conscience) SOAP service that I have to connect to for a project. The problem I have having is that I am getting the dreaded </p>
  
  <pre><code>  SEVERE: SOAP header missing
    org.apache.axis2.AxisFault: SOAP header missing
    at  org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
  </code></pre>
  
  <p>Throwable stack trace </p>
  
  <p>I'm generating the client stub with wsdl2code and just calling the </p>
  
  <pre><code> GetResponseTypeDef resp = stub.getRequest(requestypdef, headerTypeDef);
  </code></pre>
  
  <p>headerTypeDef appears to be correctly populated with the header information the service requests.</p>
  
  <p>I want to capture the raw, clear text SOAP xml request being sent out but the endpoint uses https and I have zero visibility into the service. So wireshark really isn't an option.</p>
  
  <p>I'm using the following on linux:
       axis2 1.5.4
       rampart 1.5.1
       wss4j 1.5.10</p>
  
  <p>I am pretty certain that I am sending out the SOAP header, but I need to prove it. This service uses just about every subproject of the WS-* including security, policy, encryption and digital signing so there only about 100 places that can cause this thing to fail.</p>
  
  <p>Any help would be appreciated.</p>