/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package eu.ellectraweb.framework.components;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * Web service which uses Convert class to convert XML documents
 * in HTML and PDF using FOP processor and XSLT transfomrations.
 * @author EON
 */
@WebService()
public class XmlConverterService {

	/**
     * Web service method.
     */
    @WebMethod(operationName = "Convert")
    public String Convert(@WebParam(name = "formType") String formType,
    		@WebParam(name = "path") String path,
    		@WebParam(name = "mimeType") String mimeType,
    		@WebParam(name = "language") String language) {
        
        Converter converter = new Converter();
        return converter.Convert(formType, path, mimeType, language);
    }

}
