Java Client for NTAP Authenticated SOAP Web Service

I spent many days and days trying to find a suitable Java infrastructure that could connect to Microsoft Dynamics CRM that uses negotiation / NTLM authentication. I tried all existing suggestions for Stackoverflow and other resources using JAX-WS, Axis2, CXF with various HTTP protocol handlers. None of them worked properly. The best approach currently is Axis2 / commons-httpclient-3.1, where I can track at least all three steps using the NTLM digest, however the target IIS still refuses authentication with 401 Unauthorized. Apache CXF - both with built-in Java6 NTLM support, and with jCIFS, which some people suggested as a means of protection, did not work,since the first ones were not executed in the second answer 401 (while he was supposed to send the third request, according to the protocol), and the latter tries to read the response code from an empty input stream and does not work.

So the question is, did anyone manage to get hold of NTLM-protected SOAP web service from the Java 6 platform?

+5
source share
2 answers

I was hoping that someone else would call back, as my knowledge in this area was already several years old and, possibly, not the best advice - in particular, I worked only with commons-httpclient 3 and not with any of the new packages that they promise to do NTLM / NTLMv2 is correct.

, , , commons-httpclient 3 NTLM NTLM, NTLMv2. , commons-httpclient 3 NTLM , NTLMv2. , NTLMv2 Microsoft. , , , , , .

+1

, . Java Jespa + jCIFS JAX-WS.

0

All Articles