package com.weaver.seconddev.interfaces.oames;

import java.rmi.RemoteException;
import java.lang.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.weaver.verupgrade.general.BaseBean;

/**
 * HTGD-JS04新材料立项流程
 */
public class CallMesNewMaterialProjectService extends BaseBean {

	private static final org.slf4j.Logger logger_5b2c0941 = LoggerFactory.getLogger(CallMesNewMaterialProjectService.class);

	private OA_KSJXCL_SERVICEStub.OA_XCLLXSQ resultin = null;

	public void setOainput(OA_KSJXCL_SERVICEStub.OA_XCLLXSQ oames) {
		this.resultin = oames;
	}

	public String[] call() throws RemoteException {
		logger_5b2c0941.error(String.valueOf("调用接口------------------------开始"));
		OA_KSJXCL_SERVICEStub stub = null;
		String wsdlLocation = "http://10.7.6.67:7280/OA_KSJXCL_SERVICE.svc?wsdl";
		stub = new OA_KSJXCL_SERVICEStub(wsdlLocation);
		stub._getServiceClient().getOptions().setProperty("__CHUNKED__", Boolean.FALSE);
		OA_KSJXCL_SERVICEStub.OA_XCLLXSQResponse response = stub.oA_XCLLXSQ(resultin);
		OA_KSJXCL_SERVICEStub.ArrayOfOA_KSJXCL_RETURN_TYPE response_result = response.getOA_XCLLXSQResult();
		OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE[] results = response_result.getOA_KSJXCL_RETURN_TYPE();
		logger_5b2c0941.error(String.valueOf("调用接口------------------------完成"));
		OA_KSJXCL_SERVICEStub.OA_KSJXCL_RETURN_TYPE result = results[0];
		// 封装返回
		String[] rtInfo = new String[3];
		rtInfo[0] = result.getVBELN();
		rtInfo[1] = result.getISTAT();
		rtInfo[2] = result.getMESSAGE();
		return rtInfo;
	}
}
