• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Microsoft Sharepoint Web Services integration with Java

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranch,
I am trying to use MS Sharepoint via Web Services using Java code, I have successfuly been able to use Lists WSDL to generate code using WSIMPORT and connect to sharepoint using basic authenication, call get lists method which returns the list of file objects on the document library in XML. Now I am trying to do file check in (File upload) and check out ( File download) using the same approach, I would really appreciate any suggestion or help in this Endeavour. Thanks in advance.

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I think you have to look into share point documentation on what java interfaces can be used for integration.

Google for Java interfaces to Sharepoint. I have found some.



 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

seshu Palamanti wrote:Hi Ranch,
I am trying to use MS Sharepoint via Web Services using Java code, I have successfuly been able to use Lists WSDL to generate code using WSIMPORT and connect to sharepoint using basic authenication, call get lists method which returns the list of file objects on the document library in XML. Now I am trying to do file check in (File upload) and check out ( File download) using the same approach, I would really appreciate any suggestion or help in this Endeavour. Thanks in advance.



Hi Seshu,

I am struggling to connect to sharepoint using Lists webservice.I have generated the stub but still getting issues. Can you please gve me a detailed description on how actually to achieve it. A quick response will be highly appreciated.

Thanks,
 
seshu Palamanti
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Samrat,
Can you please tell which problems you are getting into while doing call on Lists
 
seshu Palamanti
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Samrat,
Here are the steps that I followed

1) run wsimport http://wsdl file location
2) Copy the generated .java files into your project source.
3) Write your own class to connect to Lists and print it out on console.
4) Set username and password to connect to webservice.

Here is the complete code. Hope this helps
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Seshu,

Can you please tell me the environment setup you have used to make the above code work. I have tried the same approach using the below mentioned environment but was not able to connect to the Share Point Server (Authentication issues fall on)

Web Sphere 7
JAX-WS Web Service

Thanks,
Pavan Kumar.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am new to java and im trying to read a sharepoint list via a java program.
I followed the steps above and it complies, however when it comes to run the following an com.sun.xml.internal.ws.fault.ServerSOAPFaultException exception is thrown:

GetListItemsResponse.GetListItemsResult result = port.getListItems(listName, viewName, query, viewFields, rowLimit, queryOptions, webID);


I am sure the list name i am passing exists and is correct.

Can any one guide me please?

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic