This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Zero to AI - A non-technical, hype-free guide to prospering in the AI era and have Nicolò Valigi and Gianluca Mauro on-line!
See this thread for details.
Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Microsoft Sharepoint web service from Java client

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can call the sharepoint web services from java client if sharepoint uses basic authentication.

ServiceSoapStub serviceSoapStub = new ServiceSoapStub(new URL(Service_URL), null);
serviceSoapStub.setUsername(USERNAME);
serviceSoapStub.setPassword(PASSWORD);

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)

Thanks
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

http://spnego.sourceforge.net/protected_soap_service.html

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

http://spnego.sourceforge.net/SpnegoHelloClient.java
http://spnego.sourceforge.net/ExampleSpnegoSOAPClient.java

Good luck!

 
reply
    Bookmark Topic Watch Topic
  • New Topic