// 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:   CallSrmServices.java
package com.weaver.seconddev.interfaces.srmoa;

import java.rmi.RemoteException;
import java.lang.*;

import com.weaver.seconddev.interfaces.prop.ConfigProp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.weaver.verupgrade.general.BaseBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

// Referenced classes of package  com.weaver.seconddev.interfaces.srmoa:
// OaSrmVendorPropmtionServiceServiceStub

@Component
public class CallVdDlvApplyServices extends BaseBean {

	private static final org.slf4j.Logger logger_5d55910e = LoggerFactory.getLogger(CallVdDlvApplyServices.class);

	private VdDlvApplyHandlerServiceServiceStub.DlvApplyIn dlvapplyin;
	@Autowired
	private ConfigProp configProp;
	public CallVdDlvApplyServices() {
		dlvapplyin = null;
	}

	public void setOainputvendor(VdDlvApplyHandlerServiceServiceStub.DlvApplyIn oainputvendor1) {
		dlvapplyin = oainputvendor1;
	}

	public String[] call() throws RemoteException {
		logger_5d55910e.error(String.valueOf("调用CallVdDlvApplyServices webservice start ......"));
//                    this(configurationContext, Prop.getPropValue("htsrmoasync","gysxznew") );
		String url = configProp.getGysxznew();
		VdDlvApplyHandlerServiceServiceStub stub = new VdDlvApplyHandlerServiceServiceStub(url);
		VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLY oa_srm_vd_dlv_apply = new VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLY();
		VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYE oa_srm_vd_dlv_applye = new VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYE();
		oa_srm_vd_dlv_apply.setInputTab(dlvapplyin);
		oa_srm_vd_dlv_applye.setOA_SRM_VD_DLV_APPLY(oa_srm_vd_dlv_apply);

		VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYResponseE oa_srm_vd_dlv_applyresponsee = stub.oA_SRM_VD_DLV_APPLY(oa_srm_vd_dlv_applye);
		VdDlvApplyHandlerServiceServiceStub.OA_SRM_VD_DLV_APPLYResponse response = oa_srm_vd_dlv_applyresponsee.getOA_SRM_VD_DLV_APPLYResponse();
		VdDlvApplyHandlerServiceServiceStub.DlvApplyOut oaoutputvendor = response.getOutputTab();
		logger_5d55910e.error(String.valueOf("调用CallVdDlvApplyServices webservice success ......"));
		logger_5d55910e.error(dlvapplyin.getRequestId() + " result:" + oaoutputvendor.getIstat() + " " + oaoutputvendor.getMsg());
		String[] as = new String[2];
		as[0] = oaoutputvendor.getIstat();
		as[1] = oaoutputvendor.getMsg();
		return as;
	}
}
