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 = “”;
trans.ContactID = “CNT-0005”;
trans.ContactName = “Ahmed Alam”;
trans.ContactMobile = “0535865xxx”;

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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s