WCF IIS service accessible via JAVA with NTLM authentication
We have a WCF service hosted in IIS 6 with Integrated Windows Authentication enabled under Directory Security. By consuming this service from a .NET Windows client, the cached NTLM credentials go to the server PC and everything works fine. We would like this to happen when a Java client accesses the service (via objects generated by WSDL) from a Windows PC. Everything we've looked at on the net seems to suggest that we won't need to hard-code username / password into Java code if we use Sun's java.net.authenticator and run the process on a Windows platform. It's true? We have a solution using Axis 2.0 and its proprietary NTLM authenticator, however we had to hardcode the username / password. Ideally, we would likeso that cached NTLM credentials are automatically passed to the server. It looks like it should be possible since the Java process runs on a Windows PC.
Thoughts?
a source to share
Here's an open source library, http://spnego.sourceforge.net/protected_soap_service.html , that does exactly what you want to do.
a source to share