package nccloud.api.so.saleinvoice.operator;

import nc.bs.framework.core.util.ObjectCreator;
import nccloud.api.baseapp.exchange.convert.IExchangeForService;
import nccloud.api.baseapp.exchange.convert.IOpenApiJsonConvertToExChangeXmlService;
import nccloud.api.baseapp.exchange.convert.OpenApiConvertDataObject;
import nccloud.api.baseapp.exchange.convert.OpenApiConvertDataResult;


/**
 * 销售发票接口适配2005代码
 * zhangxinah
 */

public class OpenApiJsonConvertToExChangeXmlService implements IOpenApiJsonConvertToExChangeXmlService {

    @Override
    public OpenApiConvertDataResult changeToExchangeData(OpenApiConvertDataObject openApiConvertDataObject)
            throws Exception {
        return getPFxxEJBService().changeToExchangeData(openApiConvertDataObject);
    }

    public static IExchangeForService getPFxxEJBService() {
        IExchangeForService exchangeForService = (IExchangeForService) ObjectCreator.newInstance("ufesbexpress",
                "nccloud.pubimpl.pfxx.convert.ExchangeForServiceImpl");
        return exchangeForService;
    }
}
