Cancel
Showing results for 
Search instead for 
Did you mean: 

File download/upload in SOA API for Active Workspace

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Some customers want to use AWC integration with CAD, so that no RAC/TCCS installation is required on clients.

 

But the SOA API use FCC for file management.

 

How could file download/upload be managed in this case ?

 

 

 

 

 

5 REPLIES

Re: File download/upload in SOA API for Active Workspace

Siemens Creator Siemens Creator
Siemens Creator

Hi Amol,

 

You can call an Java Util and can Download the File from Teamcenter without using the FMS.

 

FileManagementUtility Package is available in SOA.

 

But this is not exposed in WSDL, so can only be accessed by using a Java Client.

Re: File download/upload in SOA API for Active Workspace

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Thanks @Gopal_Somani I will try this and let you know.

Re: File download/upload in SOA API for Active Workspace

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Hi Somani,

 

Do you have an example of using an Java Util for downloading a File from Teamcenter without FMS?

 

Thank you in advance,

Jeroen Mansvelders

Re: File download/upload in SOA API for Active Workspace

Siemens Creator Siemens Creator
Siemens Creator

You can try this ....

 

FileManagementUtility fMSFileManagement ;

String[] FMS_Bootstrap_Urls = new String[] { "http://FMS-SERVER:4554" };

fMSFileManagement = new FileManagementUtility(AppXSession.getConnection(), null, null,FMS_Bootstrap_Urls, tmpDir);

 

ModelObject obj; //Object From Teamcenter

FileCacheProxyCB fileCacheObj = new FileCacheProxyCB();

String fileName = ((ImanFile) obj).get_original_file_name();

GetFileResponse fileResp = fMSFileManagement.getFileToLocation(obj, tmpDir + fileName ,

fileCacheObj, new String("My Custom Object"));

 

for (File file : fileResp.getFiles()) {

System.out.println("Name: " + file.getName() + ", " + file.length());

downLoadedFileName = file.getAbsolutePath();

break;

}

Re: File download/upload in SOA API for Active Workspace

Siemens Experimenter Siemens Experimenter
Siemens Experimenter

Thank you! I implemented the code and it worked!