Working with customized AIF (Service Operation : Create)

//Service Declaration
ContactQueryServiceClient _client = new ContactQueryServiceClient();
AxdContactQuery mycontactQuery = new AxdContactQuery();
AxdEntity_ContactTable trans = new AxdEntity_ContactTable();

//trans.MyContactIDSpecified = true;
trans.ContactEmail = “containerblue@gmail.com”;
trans.ContactID = “CNT-0005”;
trans.ContactName = “Ahmed Alam”;
trans.ContactMobile = “0535865xxx”;

mycontactQuery.ContactTable = new AxdEntity_ContactTable[1] { trans };
try
{
_client.create(this.getCallContext(), mycontactQuery);
RTB_ErrorBox.Text = “Inserted successfully.”;
}
catch (Exception ex)
{
RTB_ErrorBox.Text = Convert.ToString(ex.Message);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s