Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Consume SharePoint 2013 REST Services From Java

$
0
0

Hello,

for one of my clients we want to consume SharePoint 2013 Rest Services.

i've found on internet an example 

NTCredentials credentials =
                new NTCredentials(user, pass, "JAVA-MACHINE-NAME", "DOMAIN");
            HttpClient httpClient = new HttpClient();
            httpClient.getState().setCredentials(AuthScope.ANY, credentials);
            httpClient.getParams().setAuthenticationPreemptive(true);

but in HttpClient 4.3.5 setAuthenticationPreemptive is deprecated.

Does someone has an idea about to authenticate the Java application to consume SharePoint 2013 Rest Services?

Thanks


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>