Patrick Hampton

I have a WinForm app, and am trying to perform checkout/checkin using the build in List.asmx web service. I am having trouble checking files back in once I have them checked out. Here are the steps I am taking:

1. Checkout the file.

2. Download the file so that the user has a local copy

3. Open the file in the WinForm app.

4. Once the user is finished upload the file back to SharePoint

a. I get an error here telling me the file location is invalid. I'm also not sure that I am uploading files correctly, because the only method I found that could perform upload via the web services was Copy.

5. Checkin the file

a. I get a SoapServerException when I call Checkin()

Are these the correct steps for what I am trying to accomplish

Thanks

Patrick Hampton



Re: SharePoint - Development and Programming Checkout/Checkin using built in WebService

ohms

Hi Patrick

I am trying to do exactly the same functionality.

Did you by any chance get the solution.

I can checkout the file and still it does not copy it to a local folder.

I had to worry about checking in the file after that.

Thanks

ohm






Re: SharePoint - Development and Programming Checkout/Checkin using built in WebService

Gaurav Rehan

Hi,

I had the same usecase, and this is how I am doing it, and it is working perfectly fine:

1) call CheckoutFile() to checkout the file
2) Get the file to local remote machine by HTTP GET so that user can do the modifications
3) Upload the modified file (with exactly the same name) using HTTP PUT
4) Finally call Lists.asmx CheckinFile() to checkin the file

Try this, this should work. Also ensure that the require checkout option is On and Versioning is On.

Regards,