JAX-WS Sharepoint 401 Unauthorized NTLM

前端 未结 3 655
迷失自我
迷失自我 2020-12-05 15:30

I try to access a Sharepoint list via JAX-WS as described here

However, when running the code below I get:

java.lang.Exception: Exception. See stackt         


        
3条回答
  •  粉色の甜心
    2020-12-05 16:27

    As far as I know, you can't do NTLM authentication through BindingProvider.

    If you are familiar with Spring framework, you can use Spring-WS. Spring-WS supports transport with Apache HttpClient 4.x through the HttpComponentsMessageSender class. Apache HttpClient 4.x has good support for NTLM authentication. You can use the JAX-WS classes generated by wsimport tool as argument to marshalSendAndReceive.

提交回复
热议问题