I need to upload a tree on Alfresco, with various nodes and contents. ¿I need to upload every node, one by one? ¿Or there are a webservice or function to upload a full tree with their different nodes?
Well, but I need to upload the tree of nodes with a webservice in Java, like when I use, for example, repositoryService.update or CMLUpdate to upload a single node.
You are going to have to upload some sort of packaged structure for example a zip file and then have an action unpack it on the server. You can either run the action explicitly (so do it in two calls) or for eample have the server run a rule on all zip files to unpack them and do whatever else you need to happen.
Another approach I have used with Alfresco is to post a multi-part mime message to a webscript. That works better than having all the web services guff in the way since you simply stream the files and whatever else is needed rather than faffing around with wrapping the content up in XML.