D
dumian
Hi,
I have an problem on adding files to an specific subfolder of the root tool
, in case that with same code adding folders and files but to the root it
works, only when i set the targetfolder URI value and the FolderID i get an
Soap error with XML Element. Same it is happend if i set the root URI or
TargetFolderURI as request value and the FolderID with the subfolder name
that i want to use . Here is the code snippet that i use :
GrooveFiles.GrooveFilesBase64 FilesBase64WebService = new
GrooveFiles.GrooveFilesBase64();
FilesBase64WebService.GrooveRequestHeaderValue = new
GrooveFiles.GrooveRequestHeader();
FilesBase64WebService.GrooveRequestHeaderValue.GrooveIdentityURL =
m_IdentityURL;
FilesBase64WebService.GrooveRequestHeaderValue.GrooveRequestKey =
GrooveRequestKey;
if (i_TargetFolderURI == "")
FilesBase64WebService.Url = GrooveHost + Data + "/$ComponentGroup";
else
FilesBase64WebService.Url = GrooveHost + i_TargetFolderURI;
GrooveFiles.FileDescriptor FileDescriptor = new
GrooveFiles.FileDescriptor();
FileDescriptor.DisplayName = i_FileName;
FileDescriptor.Name = i_FileName;
FileDescriptor.FolderID = m_sSubFolderID;
if(m_nType==0)
FileDescriptor.Type = "Folder";
else if(m_nType==1)
FileDescriptor.Type = "File";
AddedFileID = FilesBase64WebService.Create(FileDescriptor, i_FileContents);
Thank you in advance,
cosmin
I have an problem on adding files to an specific subfolder of the root tool
, in case that with same code adding folders and files but to the root it
works, only when i set the targetfolder URI value and the FolderID i get an
Soap error with XML Element. Same it is happend if i set the root URI or
TargetFolderURI as request value and the FolderID with the subfolder name
that i want to use . Here is the code snippet that i use :
GrooveFiles.GrooveFilesBase64 FilesBase64WebService = new
GrooveFiles.GrooveFilesBase64();
FilesBase64WebService.GrooveRequestHeaderValue = new
GrooveFiles.GrooveRequestHeader();
FilesBase64WebService.GrooveRequestHeaderValue.GrooveIdentityURL =
m_IdentityURL;
FilesBase64WebService.GrooveRequestHeaderValue.GrooveRequestKey =
GrooveRequestKey;
if (i_TargetFolderURI == "")
FilesBase64WebService.Url = GrooveHost + Data + "/$ComponentGroup";
else
FilesBase64WebService.Url = GrooveHost + i_TargetFolderURI;
GrooveFiles.FileDescriptor FileDescriptor = new
GrooveFiles.FileDescriptor();
FileDescriptor.DisplayName = i_FileName;
FileDescriptor.Name = i_FileName;
FileDescriptor.FolderID = m_sSubFolderID;
if(m_nType==0)
FileDescriptor.Type = "Folder";
else if(m_nType==1)
FileDescriptor.Type = "File";
AddedFileID = FilesBase64WebService.Create(FileDescriptor, i_FileContents);
Thank you in advance,
cosmin