Index: lams_common/src/flash/org/lamsfoundation/lams/common/comms/Communication.as =================================================================== diff -u -rdc18fc1f7338d4df46a5ecfc113df0cd5f32b50c -r4566972dfbdca1eea1c15691b09506dba5e88396 --- lams_common/src/flash/org/lamsfoundation/lams/common/comms/Communication.as (.../Communication.as) (revision dc18fc1f7338d4df46a5ecfc113df0cd5f32b50c) +++ lams_common/src/flash/org/lamsfoundation/lams/common/comms/Communication.as (.../Communication.as) (revision 4566972dfbdca1eea1c15691b09506dba5e88396) @@ -87,6 +87,7 @@ } //Create XML response object var responseXML = new XML(); + responseXML.ignoreWhite = ignoreWhite; //Assign onLoad handler responseXML.onLoad = Proxy.create(this,onServerResponse,queueID); //Add handler to queue @@ -126,6 +127,7 @@ //Serialise the Data Transfer Object var xmlToSend:XML = serializeObj(rawDto); + xmlToSend.ignoreWhite = ignoreWhite; //xmlToSend.contentType="dave"; //Create XML response object @@ -162,11 +164,8 @@ trace('XML loaded success:'+ success); //Load ok? if(success){ - var responseObj:Object = wddx.deserialize(wrappedPacketXML); - - - - if(responseObj.messageType == null){ + var responseObj:Object = wddx.deserialize(wrappedPacketXML); + if(responseObj.messageType == null){ Debugger.log('Message type was:'+responseObj.messageType+' , cannot continue',Debugger.CRITICAL,'getRequest','Communication'); Debugger.log('xml recieved is:'+wrappedPacketXML.toString(),Debugger.CRITICAL,'getRequest','Communication'); return -1; @@ -263,7 +262,7 @@ private function setOnData(xmlObject:XML){ //Set ondata handler to validate data returned in XML object xmlObject.onData = function(src){ - Debugger.log('src:'+src,Debugger.GEN,' xmlObject.onData ','Communication'); + //Debugger.log('src:'+src,Debugger.GEN,' xmlObject.onData ','Communication'); if(Application != null){ Cursor.showCursor(Application.C_DEFAULT); }