// -------------------------------------------------------------------------------------- // A2012_VerlengServiceTask.js // Copyright 2019 Facilitor. 053-4800 700, helpdesk@facilitor.nl // Written by MB (2019) // function A2012_VerlengServiceTask(v_company_id, v_taskId, v_plandate2) { var v_API = "updatePurchStatus"; if (v_plandate2 != "") {v_plandate2 = v_plandate2 + "Z";} else {v_plandate2 = "1900-01-01T00:00:00Z";} v_req = '<_companyID>' + v_company_id + " <_taskId>" + v_taskId + " <_planDate>" + v_plandate2 + ""; v_type = 0; var v_soapAction = "SupplierPortal/updatePurchStatus"; v_resp = apiAX(v_API, v_req, v_type,v_soapAction); if (v_type == 1 && v_resp != "") { oStream = new ActiveXObject("ADODB.Stream"); oStream.Open(); oStream.Type = 1; // adTypeBinary oStream.Write(v_resp); // responseText geeft encoding problemen! oStream.SaveToFile ("Log/test" + v_supplier_id + ".xml", 2); oStream.Close(); } return v_resp; }