Hello everybody!
Sorry for my English. I hope I will be understood.
I've got such a problem to solve...
I need to make ArrayOfParcel according to
I've got parameter
Code |
---|
GetAvailableServicesRequest.Parcels = ArrayOfParcel; |
When I give this parameter in this way below, I get an answer "Wrong XDTO type":
Code |
---|
ArrayOfParcel = New ValueList(); ArrayOfParcel.Add(Parcel.Type="Package",Parcel.Weight=1); ArrayOfParcel.Add(Parcel.Type="Package",Parcel.Weight=3); |
I tried also, but result the same as above, i.e "Wrong XDTO type":
Code |
---|
ArrayOfParcel = new ValueTable(); ArrayOfParcel.Columns.Add("Weight"); ArrayOfParcel.Columns.Add("Type"); Parcel = ArrayOfParcel.Add( Parcel.Type = "Package", Parcel.Weight = 1; ); Parcel2 = ArrayOfParcel.Add( Parcel.Type = "Package"; Parcel.Weight = 1; ); |
I need to write it in proper way but I don't have any idea how to do it. Could you help me? Any clues? Thank you in advance for every single answer.
Kris