roy1

We are trying to upload a file from a Java application into a document library in Sharepoint server 2007 using webservices.
What is the best way to go about it There seems to be only one operation in Imaging service which can be used to upload a picture into picture library. But this cannot be used in general manner to upload a document into a document library.

Also we are also unable to upload an image file into a picture library using Axis 2 API for SOAP. It seems that the authentication handshaking is interfering when the file bytes are being sent.

But we can succesfully do the authetication and use other web service methods like GetWebCollection using Axis 2.

Also with every web service method invovation, the authentication handshake is happening which is not desired.

Any kind of suggestion would really help.



Re: SharePoint - Development and Programming uploading file into sharepoint server 2007

Peruri Srinivasulu

It is easy to create a upload web service and host in the SharePoint environment. There are some samples already in the MSDN and some community groups.

Here are some pointers.

http://blogs.msdn.com/erikaehrli/archive/2006/05/04/SharePointUploadHelper.aspx

http://blogs.ittoolbox.com/km/sharepoint/archives/custom-web-service-for-uploading-files-to-sharepoint-13217

Hope this helps.






Re: SharePoint - Development and Programming uploading file into sharepoint server 2007

JavaArchitect

You can use WebServices call SubmitFile. You can provide RecordsRepositoryProperty to specify type of file and where you want to see it. Sharepoint support Basic authentication, so you have to configure Axis2 to use it.