Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

In order to use transformation manager from another epsos common component you can use the following part of code

// Here is the target language of the transformation method
lrtLang="el-GR";
ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("ctx_tm.xml");
ITransformationService tService = (ITransformationService) applicationContext.getBean(ITransformationService.class.getName());
TMResponseStructure tmResponse = tService.translate(doc, ltrLang);
Document translatedDoc = tmResponse.getResponseCDA();

As you can see you have to have access to ctx_tm.xml file in your application. A sample ctx_tm.xml file can be found here

 

  • No labels