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.
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.
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.
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)
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?
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
a bit of art, as a gift, the permaculture playing cards