NTLM fails when consuming SharePoint web service from Java?

前端 未结 2 2042
挽巷
挽巷 2021-01-06 18:03

I have a Java client that consumes SharePoint 2010 standard web services (sitedata.asmx, permissions.asmx, etc) written with JAX-WS implementation from the JDK 6.

So

2条回答
  •  醉酒成梦
    2021-01-06 19:05

    You have to disable the tranparent authentication in java. you can do this either by dropping in a custom rt.jar or using reflection to modify the java classes.

    tryTransparentNTLMServer and tryTransparentNTLMProxy are the fields in the HttpURLConnection which you need to set accessible and then to false when using the reflection method. Obviously just change this class if your making your own rt.jar

提交回复
热议问题