MARX#84766 Viewpoint gevoelig voor HTTP-header "Content-Type" in Waardwonen en Itris tests
svn path=/Mareon/trunk/; revision=65638
This commit is contained in:
@@ -748,8 +748,9 @@ function FACILITOR_2_Xtractor()
|
||||
// 1.79 -- MARX#82415: Implementatie "Mijande Wonen" (Dynamic Empire van Zig/Cegeka) + MARX#83105 Tobias AX2012 -> T365 conversie met facturenstop + MARX#83688 Implementatie Bouwinvest / Schepvastgoed (Zig/Casix)
|
||||
// 1.80 -- MARX#81606: Signaleren dat een opdracht gewijzigd is (VM000000566278), t.b.v. (alleen) AX2012 is aanpassing in SYNC nodig (AX2009 worden geen updates meer gedaan, alle andere ERPs verlopen via pushprincipe en doen het)
|
||||
// 1.90 -- MARX#69956: Notities bij opdrachten naar de opdrachtgever
|
||||
// 1.91 -- MARX#84766: Viewpoint gevoelig voor HTTP-header "Content-Type"
|
||||
|
||||
var G_Mareon_Adapter = "1.90";
|
||||
var G_Mareon_Adapter = "1.91";
|
||||
//MARX#56643: Test Haagwonen inkoopordernummer ontbreekt in Mareon ION001753
|
||||
var G_new_date = new Date();
|
||||
|
||||
@@ -797,6 +798,7 @@ var G_twinq_url = Read_Ini_Setting("twinq","url");
|
||||
|
||||
var G_3party_id = Read_Ini_Setting("thirdparty","id");
|
||||
var G_3party_export_folder = Read_Ini_Setting("thirdparty","exportfolder");
|
||||
var G_3party_httpheader_contenttype = Read_Ini_Setting("thirdparty","httpheader/contenttype");
|
||||
var G_3party_dico_version = Read_Ini_Setting("thirdparty","dico/version");
|
||||
var G_3party_dico_ms_version = Read_Ini_Setting("thirdparty","dico/messageservice/version");
|
||||
|
||||
@@ -867,6 +869,7 @@ var G_mar_timeout = 0; //initieel 1e keer.
|
||||
__Log("***XML- twinq/url: " + G_twinq_url, 1);
|
||||
__Log("***XML- thirdparty/id: " + G_3party_id, 1);
|
||||
__Log("***XML- thirdparty/exportfolder: " + G_3party_export_folder, 1);
|
||||
__Log("***XML- thirdparty/dico/httpheader/contenttype: " + G_3party_httpheader_contenttype, 1);
|
||||
__Log("***XML- thirdparty/dico/version: " + G_3party_dico_version, 1);
|
||||
__Log("***XML- thirdparty/dico/messageservice/version: " + G_3party_dico_ms_version, 1);
|
||||
__Log("***XML- identityserver/token/url: " + G_ID_saxton_url, 1);
|
||||
|
||||
@@ -97,6 +97,9 @@
|
||||
<!-- Id of Naam van 3rd Party (ERP)system, b.v. ViewPoint -->
|
||||
<id></id>
|
||||
<exportfolder></exportfolder>
|
||||
<httpheader>
|
||||
<contenttype></contenttype>
|
||||
</httpheader>
|
||||
<dico>
|
||||
<!-- DICO versie, bv 005 -->
|
||||
<version></version>
|
||||
|
||||
@@ -925,6 +925,12 @@ function api_3P_inner (v_Url, v_API, v_req, v_type, v_soapAction, v_discard_acti
|
||||
__Log("api2_3P_inner v_discard_active_abort: " + v_discard_active_abort, 3);
|
||||
__Log("api2_3P_inner v_soort_api: " + v_soort_api, 3);
|
||||
|
||||
var v_contenttype = "text/xml";
|
||||
if (G_3party_httpheader_contenttype != "")
|
||||
{
|
||||
v_contenttype = G_3party_httpheader_contenttype;
|
||||
}
|
||||
|
||||
var v_msg = v_req;
|
||||
if (G_3party_dico_ms_version != "")
|
||||
{
|
||||
@@ -946,7 +952,7 @@ function api_3P_inner (v_Url, v_API, v_req, v_type, v_soapAction, v_discard_acti
|
||||
}
|
||||
|
||||
xmlhttp.open("POST", v_Url, false);
|
||||
xmlhttp.setRequestHeader("Content-Type", "text/xml");
|
||||
xmlhttp.setRequestHeader("Content-Type", v_contenttype);
|
||||
if (v_soapAction)
|
||||
{
|
||||
xmlhttp.setRequestHeader("SOAPAction",v_soapAction);
|
||||
|
||||
Reference in New Issue
Block a user