Examples of Traduction


Examples of be.hikage.spring.ws.model.Traduction

* Time: 23:30:09
* To change this template use File | Settings | File Templates.
*/
public class TraductionServiceImpl implements TraductionService {
    public Traduction traduitTexte(String langueOrigine, String langueDestination, String texte) {
        return new Traduction("Gildas Cuisinier", "Le texte traduit : " + texte);
    }
View Full Code Here

Examples of be.hikage.spring.ws.model.Traduction

        String langueOrigine = langueOrigineExpression.valueOf(request);
        String langueDestination = langueDestinationExpression.valueOf(request);
        String texteOriginal = texteExpression.valueOf(request);

        // Appel au service pour la traduction
        Traduction traduction = traductionService.traduitTexte(langueOrigine, langueDestination, texteOriginal);


        // Cr�ation de la r�ponse
        Element root = new Element("TraductionResponse", namespace);
        Element auteur = new Element("auteur", namespace);
        auteur.setText(traduction.getAuteur());

        Element texteTraduit = new Element("texte", namespace);
        texteTraduit.setText(traduction.getTexte());

        root.addContent(auteur);
        root.addContent(texteTraduit);

        return root;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.