File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Microsoft Sharepoint web service from Java client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Microsoft Sharepoint web service from Java client" Watch "Microsoft Sharepoint web service from Java client" New topic

Microsoft Sharepoint web service from Java client

Pin Ping

Joined: Jan 08, 2010
Posts: 2
I can call the sharepoint web services from java client if sharepoint uses basic authentication.

ServiceSoapStub serviceSoapStub = new ServiceSoapStub(new URL(Service_URL), null);

result = serviceSoapStub.getListItems(...);

But if sharepoint uses Kerberos authentication, and my java side (WebSphere portal) is also using Kerberos, what should I do to make the web service call?

Have anyone done that? (Microsoft sharepoint web service from Websphere Portal with both Kerberos authentication)

Pat Gonzalez

Joined: Oct 18, 2009
Posts: 19

I think the issue might be that the client (ServiceSoapStub, etc.) you are using does not know how to talk Kerberos.

I'm not certain but there's probably a way to do it if you search through the websphere docs for words like single-sign on, spnego, wsdl, soap client stub, etc.

There is an open source project on sourceforge that might be of some interest. The project is meant to be a server side project but the library has a stand alone client piece that can be used against any server.

It also has two (a working example) java files that you can compile and try out on your server:

Good luck!

I agree. Here's the link:
subject: Microsoft Sharepoint web service from Java client
It's not a secret anymore!