Hi,
I've been setting up a web service in a desktop Air app and have hit a snag.
I suspect its regarding how I am setting up the Object.
I've searched but can't seem to find anything that helps with the correct formatting and was hoping someone could help please.
I have set up the following object as the method for the web service:
Code:
var despatchMethod:Object = new Object();
despatchMethod.DocumentNo = despOrderNo;
despatchMethod.ExchangeRate="";
despatchMethod.InvAddressLine1="";
despatchMethod.InvAddressLine2="";
despatchMethod.InvAddressLine3="";
despatchMethod.InvAddressLine4="";
despatchMethod.InvCity="";
despatchMethod.InvCountry="";
despatchMethod.InvCounty="";
despatchMethod.InvCustAddress="";
despatchMethod.InvPostCode="";
despatchMethod.InvPostalname="";
despatchMethod.OrderStatus="";
despatchMethod.OrderType="";
despatchMethod.SOLines = despatchLineArray; //the array is associative
despatchLineArray follows this format as is populated correctly:
Code:
despatchLineArray.push({
PrimaryKey:mod_nav.despatchContent.getChildByName("container").getChildAt(i).getChildByName("primaryKey").text,
PrintSequenceNo:"",
Quantity:mod_nav.despatchContent.getChildByName("container").getChildAt(i).getChildByName("qtyDespatched").text
});
The result from this is that only the last item in the despatchLineArray is despatched.
Thanks