Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've seen a few posts out there that say you need to use the Copy Service to do this. I have been partially successful using the List service, but I'm wondering if the list service is intended to be used this way?

Partial success = creating a new document in the Pages library, but I can't specify the name. It just shows up as {item id}_

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You can use the Copy.asmx to do so.You can have a look at one of my blog post.I use this web service to upload a file with metadata , I am sure you can do the same for the page library.

share|improve this answer
    
What would I pass in for the byte[] testDoc if I don't have a document already? I just want to create a document of the default content type and specify column values. –  Abe Miessler Jul 19 '12 at 15:39
    
I was able to create a file on the destination server, but when I try to open it I get the error: This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout." –  Abe Miessler Jul 19 '12 at 20:21
    
I have not tried this before , but things you can try is to create a page using from the UI and get this file using the Copy.GetItem Method msdn.microsoft.com/en-us/library/websvccopy.copy.getitem or try to get the default page layout for the default content type as byte array using the Copy.GetItem Method. –  Ybbest Jul 19 '12 at 22:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.