// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name:   ZOA_MM_AFNAM_SYNC.java
package com.weaver.seconddev.interfaces.crmoa;

import com.weaver.seconddev.interfaces.prop.ConfigProp;
import org.apache.axis2.AxisFault;
import java.rmi.RemoteException;
import com.weaver.common.i18n.tool.util.I18nContextUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import java.lang.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.weaver.verupgrade.general.BaseBean;
import com.weaver.verupgrade.general.Util;
import org.springframework.stereotype.Component;

@Component
public class CRM_syncUnFreezeTimes extends BaseBean {

    private static final org.slf4j.Logger logger_38dddf66 = LoggerFactory.getLogger(CRM_syncUnFreezeTimes.class);

    private CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimes time;

    public CRM_syncUnFreezeTimes() {
        time = null;
    }

    public void setOainputvendor(CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimes times) {
        time = times;
    }

    @Autowired
    private ConfigProp configProp;  //注入

    public String[] call() throws RemoteException {
        String[] as = new String[3];
        try {
            BaseBean basebean = new BaseBean();
            logger_38dddf66.error(String.valueOf("------- do webservice CRM_syncUnFreezeTimes start -------"));
            CRM_SyncUnFreezeTimesStub stub = null;
            // String s2= "http://10.6.6.77:8070/CRM_SyncUnFreezeTimes.asmx";
//            String s2 = Util.null2String(I18nContextUtilcus.getBean(Environment.class).getProperty("htcrmoasync.times")).trim();
            String s2 = configProp.getHtcrmoasync_times(); //http://10.6.6.77:8070/CRM_SyncTempUnfreeze.asmx?wsdl

            stub = new CRM_SyncUnFreezeTimesStub(s2);
            stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
            // 设置超时时间
            stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(120000);
            CRM_SyncUnFreezeTimesStub.CRM_OA_SyncUnFreezeTimesResponse response = stub.cRM_OA_SyncUnFreezeTimes(time);
            CRM_SyncUnFreezeTimesStub.ArrayOfCRM_UNFREEZETIMES_RETURN crm_return_list = response.getCRM_OA_SyncUnFreezeTimesResult();
            CRM_SyncUnFreezeTimesStub.CRM_UNFREEZETIMES_RETURN[] returnArray = crm_return_list.getCRM_UNFREEZETIMES_RETURN();
            for (CRM_SyncUnFreezeTimesStub.CRM_UNFREEZETIMES_RETURN returnStr : returnArray) {
                as[0] = returnStr.getISTAT();
                as[1] = returnStr.getMESSAGE();
            }
            logger_38dddf66.error(String.valueOf("------- do webservice CRM_syncUnFreezeTimes END -------"));
        } catch (AxisFault e) {
            e.printStackTrace();
        } catch (RemoteException e) {
            e.printStackTrace();
        }
        return as;
    }
}
