FSN#32617 Putorders gaf allerlei errors
svn path=/Website/branches/v2015.1/; revision=25075
This commit is contained in:
@@ -94,7 +94,7 @@ function connectHTTP( p_connect
|
||||
var SendOrder = -1;
|
||||
var errText = "";
|
||||
|
||||
if (p_order_mode == 0)
|
||||
if (p_bedrijfadres.ordermode == 0)
|
||||
{
|
||||
Log2File(2, "Before SendOrder submitHTTP");
|
||||
var HTTPresult = submitHTTP( p_connect
|
||||
@@ -106,7 +106,7 @@ function connectHTTP( p_connect
|
||||
}
|
||||
Log2File(2, "HTTPresult: " + HTTPresult);
|
||||
}
|
||||
else if (p_order_mode & 1)
|
||||
else if (p_bedrijfadres.ordermode & 1)
|
||||
{
|
||||
Log2File(2, "Before SendOrder SubmitDOMSOAP");
|
||||
var SOAPresult = submitDOMXSLSOAP( p_connect
|
||||
@@ -139,7 +139,7 @@ function connectHTTP( p_connect
|
||||
}
|
||||
else
|
||||
{
|
||||
Log2File(0, "Ongeldig order_mode: " + p_order_mode);
|
||||
Log2File(0, "Ongeldig order_mode: " + p_bedrijfadres.ordermode);
|
||||
}
|
||||
Log2File(2, "*< connectHTTP");
|
||||
|
||||
@@ -224,10 +224,10 @@ function connectMail( p_connect
|
||||
var mailResult = false;
|
||||
var encryptpass = "";
|
||||
|
||||
if ((p_bedrijfadres.order_mode & 2) != 0) // Ooit bedacht om vertaaldocumenten encryped te versturen
|
||||
if ((p_bedrijfadres.ordermode & 2) != 0) // Ooit bedacht om vertaaldocumenten encryped te versturen
|
||||
{ // Dat werd echter niet door virusscanners geaccepteerd dus
|
||||
// nooit in gebruik genomen
|
||||
encryptpass = p_bedrijfadres.order_certificate;
|
||||
encryptpass = p_bedrijfadres.certificateName;
|
||||
}
|
||||
|
||||
// Alleen txt en html kunnen eventueel in de mailbody
|
||||
@@ -239,7 +239,7 @@ function connectMail( p_connect
|
||||
, bcc : S("puo_bcc")
|
||||
, receiptto : S("puo_receiptto")
|
||||
};
|
||||
if ((p_bedrijfadres.order_mode & 1) == 0) // In body
|
||||
if ((p_bedrijfadres.ordermode & 1) == 0) // In body
|
||||
{
|
||||
if (p_bedrijfadres.extension == "html")
|
||||
{
|
||||
@@ -317,7 +317,7 @@ function SendOrder( p_connect
|
||||
{
|
||||
// Input:
|
||||
// Order_mode 0=in body, 1=attachment
|
||||
// +2='encrypt' opdracht mail attachments met 'order_certificate'
|
||||
// +2='encrypt' opdracht mail attachments met 'certificateName'
|
||||
// +4='donot doublebase64encode'
|
||||
// Resultaat:
|
||||
// 0 Alles ok
|
||||
|
||||
@@ -26,10 +26,10 @@ function submitHTTP( p_connect
|
||||
Log2File(1, "Opening proxy " + proxy_ip);
|
||||
httpReq.setProxy(HTTPREQUEST_PROXYSETTING_PROXY, proxy_ip);
|
||||
}
|
||||
if (p_bedrijfadres.order_certificate != "")
|
||||
if (p_bedrijfadres.certificateName != "")
|
||||
{
|
||||
Log2File(1, "certificateName= " + p_bedrijfadres.order_certificate);
|
||||
httpReq.SetClientCertificate(p_bedrijfadres.order_certificate);
|
||||
Log2File(1, "certificateName= " + p_bedrijfadres.certificateName);
|
||||
httpReq.SetClientCertificate(p_bedrijfadres.certificateName);
|
||||
}
|
||||
|
||||
httpReq.Open("POST", p_connect.CurrentAddress, false);
|
||||
|
||||
@@ -24,7 +24,7 @@ function submitDOMXSLSOAP( p_connect
|
||||
var SXH_PROXY_SET_PROXY = 2; // contante in msxml2
|
||||
//
|
||||
// Omvat onze payload met de SOAPEnvelope uit de p_xsldoc stylesheet
|
||||
// p_bedrijfadres.order_mode
|
||||
// p_bedrijfadres.ordermode
|
||||
// bit 0 [0=xml, 1 soap]
|
||||
// bit 1 [alleen voor mail attachment encryptie]
|
||||
// bit 2 [0=2*base64 encoding, 1=plain]
|
||||
@@ -32,9 +32,9 @@ function submitDOMXSLSOAP( p_connect
|
||||
//
|
||||
var XMLpayloadNode = XMLenvelope.createElement("SOAPEnvelope");
|
||||
|
||||
if (p_bedrijfadres.order_mode & 4)
|
||||
if (p_bedrijfadres.ordermode & 4)
|
||||
{
|
||||
if (p_bedrijfadres.order_mode & 8)
|
||||
if (p_bedrijfadres.ordermode & 8)
|
||||
{
|
||||
XMLpayloadDoc.load(p_textstream);
|
||||
TestAndRaiseAnXMLError("Error loading XMLpayloadDoc", XMLpayloadDoc);
|
||||
@@ -66,10 +66,10 @@ function submitDOMXSLSOAP( p_connect
|
||||
}
|
||||
|
||||
var endpoint = p_connect.CurrentAddress;
|
||||
if (p_bedrijfadres.order_certificate != "")
|
||||
if (p_bedrijfadres.certificateName != "")
|
||||
{
|
||||
var SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3;
|
||||
var arrNames = p_bedrijfadres.order_certificate.split(":"); // Certificaatnaam / Usernaam / wachtwoord gescheiden door ':'
|
||||
var arrNames = p_bedrijfadres.certificateName.split(":"); // Certificaatnaam / Usernaam / wachtwoord gescheiden door ':'
|
||||
if (arrNames.length == 3) // Nog even laten staan voor backwards compatible
|
||||
{ // Veel beter is echter om p_bedrijfadres.username/password te gebruiken
|
||||
p_bedrijfadres.username = arrNames[1];
|
||||
@@ -78,7 +78,7 @@ function submitDOMXSLSOAP( p_connect
|
||||
}
|
||||
else // Certifcaat naam
|
||||
{
|
||||
XMLhttp.setOption(SXH_OPTION_SELECT_CLIENT_SSL_CERT, p_bedrijfadres.order_certificate);
|
||||
XMLhttp.setOption(SXH_OPTION_SELECT_CLIENT_SSL_CERT, p_bedrijfadres.certificateName);
|
||||
}
|
||||
}
|
||||
XMLhttp.open("POST", endpoint, false, p_bedrijfadres.username, p_bedrijfadres.password); // async=false dus synchroon
|
||||
@@ -111,7 +111,7 @@ function submitDOMXSLSOAP( p_connect
|
||||
Log2File(3, "Response payload = " + XMLresult.xml);
|
||||
TestAndRaiseAnXMLError("Error finding xml tag in SOAP response", XMLresult);
|
||||
|
||||
if (p_bedrijfadres.order_mode & 4)
|
||||
if (p_bedrijfadres.ordermode & 4)
|
||||
{
|
||||
SOAPresult = XMLresult.xml;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ function fetchXMLContent( node
|
||||
+ ", '$PutOrdersSession$'"
|
||||
+ ", " + xrefkeystr
|
||||
+ ", " + safe.quoted_sql(where);
|
||||
if (String(Oracle.RealConnection.Properties("Provider Name")).match(/OraOLEDB/i))
|
||||
if (String(Oracle.Properties("Provider Name")).match(/OraOLEDB/i))
|
||||
{
|
||||
var sql = "SELECT xml.make_xml2(" + sql_params + ") xml_blob FROM dual";
|
||||
Log2File(2, sql);
|
||||
|
||||
Reference in New Issue
Block a user