_global.__dataLogger.logData(this,"Warning: direction is \'receive\', but params are non-null: <params>",this,mx.data.binding.Log.WARNING);
}
else
{
if(!(this.params instanceof XML))
{
this.notifyStatus("Fault",{faultcode:"XMLConnector.Not.XML",faultstring:"params is not an XML object"});
return undefined;
}
if(this.params.status != 0)
{
this.notifyStatus("Fault",{faultcode:"XMLConnector.Parse.Error",faultstring:"params had XML parsing error " + this.params.status});
return undefined;
}
}
}
else if(this.direction != "receive")
{
this.notifyStatus("Fault",{faultcode:"XMLConnector.Params.Missing",faultstring:"Direction is \'send\' or \'send/receive\', but params are null"});
return undefined;
}
var _loc4_ = this.params;
if(_loc4_ == null || this.direction == "receive")
{
_loc4_ = new XML();
}
var _loc3_ = new XML();
_loc3_.ignoreWhite = this.ignoreWhite;
_loc3_.xmlconnector = this;
_loc3_.needData = this.direction != "send";
_loc3_.onData = function(data)
{
if(this.needData)
{
if(data == undefined)
{
this.xmlconnector.notifyStatus("Fault",{faultcode:"XMLConnector.No.Data.Received",faultstring:"Was expecting data from the server, but none was received"});
}
else
{
this.parseXML(data);
if(this.status != 0)
{
this.xmlconnector.notifyStatus("Fault",{faultcode:"XMLConnector.Results.Parse.Error",faultstring:"received data had an XML parsing error " + this.status});