We are working on a web service to upload files (PDFs) to Windchill. Depending on some information it should go to a specific folder or another.
1) For our tests we took as base the example given under 'prog_examples' called 'Attachments'. In upload.xml (this file uses the webject "Add-ContentItems") one can modify the destination of the file, by default is STAGING_AREA but we would like to change it to point to a specific folder. I was reading about the "WHERE" and "TYPE", but we did not manage to specify a folder that way, we get all kind of issues. Could anyone be so kind as to give us an example on how we could specify the destination folder using that file? One problem we are currently having is that Windchill reports there is more than one Part with the same number and name, which is obviously not right. I don't know how to fetch the first () returned item only.
2) For the next step, we would need more complex evaluation to decide the destination folder. Is it possible to use Java code to access this API (Add-ContentItems, or any other API that would let us upload PDF files to Windchill), instead of XML files? Is there any documentation about it?