[X++ help] ax 2009 send data to asp.net

now i want using x++ coding to transfer customer payment-- settlement data out link with a asp.net coding.

the code is

///
[System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Xml”, “2.0.50727.5420”)]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(“code”)]
[System.Xml.Serialization.XmlTypeAttribute(Namespace=“http://r1.cxc.jc.com/ax/”)]
public partial class PaymentApplyto
{
private System.Nullable applyamtField;
private string applytorefField
///
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public System.Nullable applyamt
{
get
{
return this.applyamtField;
}
set
{
this.applyamtField = value;
}
}
///
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string applytoref
{
get
{
return this.applytorefField;
}
set
{
this.applytorefField = value;
}
}
}

///
[System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Xml”, “2.0.50727.5420”)]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(“code”)]
[System.Xml.Serialization.XmlTypeAttribute(Namespace=“http://r1.cxc.jc.com/ax/”)]
public partial class Payment
{
private PaymentApplyto[] applyToListField;

///
[System.Xml.Serialization.XmlArrayAttribute(IsNullable=true)]
[System.Xml.Serialization.XmlArrayItemAttribute(“item”, IsNullable=false)]
public PaymentApplyto[] applyToList
{
get
{
return this.applyToListField;
}
set
{
this.applyToListField = value;
}
}

}

and i’m using payment class to runing, but the settlement data need link to their another class (paymentapplyto) and tru form payment class.

how can i write the code?