How to invoke the .Net Based webservice from a java client with NTLM authentication
<p>I want to invoke the .NET Based webservice from a java client code. I generated JAX-WS stubs using wsimport tool. </p>

<p>This is how credentials are being created in .NET client-</p>

<pre><code>NetworkCredential credential = new NetworkCredential(userName, password, "domain");
client.ClientCredentials.Windows.ClientCredential = credential ;
</code></pre>

<p>How do we do it similarly in Java Client? I searched a lot and found some posts suggesting to do NTLM authentication but I am not sure how to do that.</p>