Posted by: Shantham | February 10, 2009

SharePoint Copy WebService – Part 1

I got a work on moving a file from document library using Web Service. I already work on this, but I did that with SharePoint Object model. Now I have to search for this using web service, oh… now i’m remembered the Copy web service in sharepoint; it’s just announced in WSS3.0

This Copy Web service plays the role of copying, and moving documents with the field information’s. There are three classes to play this role,

Copy :
Provides methods for copying files between SharePoint sites or within a SharePoint site.
CopyResult  :
Represents the result of a copy operation.
FiledInformation :
Provides properties that define a field associated with a document copied by using a Copy web service operation.

The three methods within Copy class do the job for us to move the files in Sharepoint libraries,

GetItem  :
Generates a Byte array representation of a document that can be passed to the CopyIntoItems method to copy the document to a different server.
CopyIntoItems :
Copies a document represented by a Byte array to one or more locations on a server.
CopyIntoItemLocal  :
Copies a document from one location on a server running Windows SharePoint Services to another location on the same server.

By using this methods we can upload, download from different servers, local machines. In my coming posts I’ll explain each method in deep.

Read more…


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: