Hi,
I tried to copy a word doc from a doc Lib and it worked fine. Same code gives me an error when I try to copy a Infopath form from forms Lib.
CopyWebService.Copy myCopyService = new CopyWebService.Copy();
myCopyService.Credentials = System.Net.CredentialCache.DefaultCredentials;
string copySource = "http://as73mossdev01:37638/Survey Requests and Reports/Form2.xml";
string[] copyDest = { "http://as73mossdev01:37638/TestFormsLib/Form2.xml" };
CopyWebService.FieldInformation myFieldInfo = new CopyWebService.FieldInformation();
CopyWebService.FieldInformation[] myFieldInfoArray = { myFieldInfo };
byte[] myByteArray;
uint myGetUint = myCopyService.GetItem(copySource, out myFieldInfoArray, out myByteArray);
CopyWebService.CopyResult myCopyResult1 = new CopyWebService.CopyResult();
CopyWebService.CopyResult myCopyResult2 = new CopyWebService.CopyResult();
CopyWebService.CopyResult[] myCopyResultArray = { myCopyResult1, myCopyResult2 };
//Copy the item in a target Lib
uint myCopyUint = myCopyService.CopyIntoItems(copySource, copyDest, myFieldInfoArray, myByteArray, out myCopyResultArray);
This code works fine for word doc but gives me a soap exception at myCopyService.GetItem.