cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Uploading files to Windchill from a Web Service

JagerBomb
10-Marble

Uploading files to Windchill from a Web Service

Hello,

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 ([0]) 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?

Thank you very much in advance

1 REPLY 1
dmarucco
5-Regular Member
(To:JagerBomb)

Hello,

 

We are facing the same issues. We would like to upload file to a folder that's different from /STAGING_AREA/username. Did you manage to solve this problem?

 

Thank You

 

Davide

Announcements

Top Tags