XLIFF Web Service
Transdyle has been providing XLIFF based online tools since quite sometime. Now, Transdyle exposes these tools as a web service. XliffService is a SOAP Web service that allows you to extract and merge the translation from and to a document and also allows you to directly translate the document using google translation content. The web service is built using Windows Communication Foundation (WCF).
The XliffService exposes the following methods:
GenerateXliff :
This method gives to the extracted XLIFF file generated from a input document.Parameters:
Name | Type | Description |
file | InputFile | Represents the input file. |
sourceLanguage | string | ISO code of the source language. |
targetLanguage | string | ISO code of the target language. |
Return Value:
A XLIFF XML document of generated from the input file, type of ProcessedFile.
Note: The generated XLIFF can be translated by any translation service ( CAT or manual) and the content can be merged to the source document using MergeDocuments method. |
MergeDocuments:
This method merges the translated content from XLIFF document to the source document.
Parameters:
Name | Type | Description |
sourceDocument | InputFile | Represents the input source file. |
xliffDocument | InputFile | Represents the tXLIFF file that contains the translated text. |
targetLanguage | string | ISO code of the target language. |
Return Value:
A translated document of same type as that of sourceDocument, type of ProcessedFile.
Note: The XLIFF document must be generated using the GenerateXliff method. |
TranslateDocument:
This method directly translates the given document to the target language.Parameters:
Name | Type | Description |
sourceDocument | InputFile | Represents the input source file. |
sourceLanguage | string | ISO code of the source language. |
targetLanguage | string | ISO code of the target language. |
Return Value:
A translated document of same type as that of sourceDocument, type of ProcessedFile.
Note: It uses multilingual content using Google machine translation service to translate the doucment. |
Classes:
InputFile:
This class represents the input file for all the web methods.Public Properties
Name | Description |
Bytes | Array of bytes, Represents the byte stream of the file. |
FileName | A string describing the name of the file. |
ProcessdedFile:
This class represents the output file for all the web methods.
Public Properties
XliffServiceClient:
This is a proxy class that contains the methods used to make requests to the XliffService.
Methods:
Service Location:
Service URL: http://api.transdyle.com/service.svc
WSDL URL: http://api.transdyle.com/Service.svc?wsdl
This Service requires clients to authenticate themselves using username and password. Please contact info@transdyle.com to get the credentials.