Package org.jitterbit.integration.server.engine.json

Examples of org.jitterbit.integration.server.engine.json.ConversionParams


    @Override
    public WsJsonError jsonToXml(WsJsonSessionId wsSessionId, WsConversionParams wsParams) throws RemoteException {
        try {
            JsonEngine engine = getEngine();
            JsonSessionCredentials credentials = createSessionCredentials(wsSessionId);
            ConversionParams conversionParams = createConversionParams(wsParams);
            engine.jsonToXml(credentials, conversionParams);
            return createForSuccess();
        } catch (Exception e) {
            return createForException(-1, e, "jsonToXml");
        }
View Full Code Here


                        wsSessionId.getJitterbitUser(),
                        wsSessionId.getMd5Pwd());
    }

    private static ConversionParams createConversionParams(WsConversionParams ws) {
        return new ConversionParams(new File(ws.getJsonFilePath()),
                        new File(ws.getXmlFilePath()), ws.getTransformationId());
    }
View Full Code Here

    @Override
    public WsJsonError xmlToJson(WsJsonSessionId wsSessionId, WsConversionParams wsParams) throws RemoteException {
        try {
            JsonEngine engine = getEngine();
            JsonSessionCredentials credentials = createSessionCredentials(wsSessionId);
            ConversionParams conversionParams = createConversionParams(wsParams);
            engine.xmlToJson(credentials, conversionParams);
            return createForSuccess();
        } catch (Exception e) {
            return createForException(-1, e, "jsonToXml");
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.engine.json.ConversionParams

Copyright © 2018 www.massapicom. 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.