Hi,
I need to make a new copy of a folder (including its contents) into a different folder on CS via CWS. According to the documentation, this code should work:
int nodeId = 355204;
int parentId = 349614;
CopyOptions options = new CopyOptions();
Node result = docManService.copyNode(nodeId, parentId, null, options);
System.out.println(result.getID());
Actualy, this does not work for me - the copyNode method throws a SOAPFaultException (NullPointerException).
I have used the following calls to verify that both the node ID's used as arguments are valid. The following calls return the correct display names.
docManService.getNode(nodeId).getName();
docManService.getNode(parentId).getName();
What am I doing wrong?
Thanks in advance for your help,
Petr