Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Microsoft Sharepoint Web Services integration with Java  RSS feed

 
seshu Palamanti
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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.

 
Napa Sreedhar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • 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.



 
Samrat Paul
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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: 64
  • Mark post as helpful
  • send pies
  • 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: 64
  • Mark post as helpful
  • send pies
  • 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
 
Pavan Kumar Nvr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Warra Guy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!