title: How to consume a Complex Type WCF web service from Java?
body: <p>Help!</p>
  
  <p>I need to consume a WCF Web Service from java. The Service:</p>
  
  <ul>
  <li>Cannot be modified.</li>
  <li>Uses <strong>CustomBinding</strong>.</li>
  <li>The Binding configuration is meant to allow communication only over HTTPS.</li>
  <li>The authenticationMode of the Binding is <strong>UserNameOverTransport</strong></li>
  <li>Has userNameAuthentication (user / password) on SOAP Headers.</li>
  <li>The return type is a Complex Type.</li>
  </ul>
  
  <p>I have written many C# clients for this service before, even consumed it from PHP (with cURL), but I'm really struggling to write a java client for it.</p>
  
  <p>I've already tried with <strong>JAX-WS</strong> and <strong>Axis</strong> with no success. I'm trying to avoid creating a client that appends a String to form the SOAP envelope and send it in an HTTP request.</p>
  
  <p><em><strong>Note:</strong> Due to NDA, I cannot provide the URL of Web Service's WSDL, so, if you're willing to help, please tell me what else can I do for you to know more about the Web Service.</em></p>
  
  <p>Thanks in advance!</p>