Iets betere API logging
svn path=/Website/trunk/; revision=36886
This commit is contained in:
@@ -46,12 +46,24 @@ if (API.apidata.stylesheet)
|
||||
}
|
||||
var inputXML = Server.CreateObject("MSXML2.DOMDocument.6.0");
|
||||
inputXML.load(Request);
|
||||
|
||||
if (inputXML.parseError.errorCode != 0)
|
||||
{
|
||||
__DoLog( "Error loading XML: "
|
||||
+ inputXML.parseError.errorCode
|
||||
+ "\n" + inputXML.parseError.reason
|
||||
+ " regel " + inputXML.parseError.line
|
||||
+ "(" + inputXML.parseError.linepos + ")"
|
||||
, "#ff0000");
|
||||
}
|
||||
if (API.apidata.loglevel) __Log2File(inputXML.xml, API.APIname + "_IN");
|
||||
|
||||
inputXML.transformNodeToObject(iXsl, xmlReq);
|
||||
}
|
||||
else
|
||||
xmlReq.load(Request);
|
||||
|
||||
if (API.apidata.loglevel) __Log2File(xmlReq.xml, API.APIname + "_IN");
|
||||
if (API.apidata.loglevel) __Log2File(xmlReq.xml, API.APIname + "_TUSSEN");
|
||||
|
||||
var xmlResp = new ActiveXObject("MSXML2.DOMDocument.6.0");
|
||||
xmlResp.appendChild(xmlResp.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\""))
|
||||
|
||||
Reference in New Issue
Block a user