Friday, February 1, 2013


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:

NameTypeDescription
fileInputFileRepresents the input file.
sourceLanguagestringISO code of the source language.
targetLanguagestringISO 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:

NameTypeDescription
sourceDocumentInputFileRepresents the input source file.
xliffDocumentInputFileRepresents the tXLIFF file that contains the translated text.
targetLanguagestringISO 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:

NameTypeDescription
sourceDocumentInputFileRepresents the input source file.
sourceLanguagestringISO code of the source language.
targetLanguagestringISO 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
NameDescription
BytesArray of bytes, Represents the byte stream of the file.
FileNameA string describing the name of the file.


ProcessdedFile:


This class represents the output file for all the web methods.

Public Properties
NameDescription
BytesArray of bytes, Represents the byte stream of the file.
FileNameA string describing the name of the file.
AdditionalInformationA string describing any additional information regarding the processing of the file.

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.