I’m trying to pass an array of object to my web service.
var bookingResponse = Service.BookOrder(
User, Password, Header, order.ToArray(), 1,
order.OrderId, order.CalculatedID(SessionRO));
On the Service:
public orderreturn BookOrder(
string username, string password, OrderHeader order,
OrderDetail[] order, int extSystemID, int extOrderID, int eventID)
Although order has data on the sending side it is coming back as null/empty on the receiving side. Any suggestions?
For arrays of custom types to pass you need to mark them with [DataContract] and the properties with [DataMember].
This might get you started;
http://msdn.microsoft.com/en-us/library/aa347850.aspx