Hello,
Still same. I have created a new table with three fields.
- Created a query
- AIF generation through wizard
- Created inbound service group on HTTP protocol
- Attached the web service in VS.NET C# Console project.
MyContactServiceReference.MyContactsQueryServiceClient client = new MyContactServiceReference.MyContactsQueryServiceClient();
MyContactServiceReference.CallContext context = new MyContactServiceReference.CallContext();
MyContactServiceReference.AxdEntity_MyContacts[] record = new MyContactServiceReference.AxdEntity_MyContacts[1];
MyContactServiceReference.EntityKey[] response;
record[0] = new MyContactServiceReference.AxdEntity_MyContacts();
Console.Write("\nID: ");
record[0].ID = Convert.ToInt32(Console.ReadLine());
Console.Write("\nName: ");
record[0].Name = Console.ReadLine();
Console.Write("\nMobile: ");
record[0].Mobile = Console.ReadLine();
Console.Write("\nEmail: ");
record[0].Email = Console.ReadLine();
context.Company = "dat";
try
{
response = client.create(context, record);
Console.WriteLine("\nSuccess! New recode with {0} '{1}'", response[0].KeyData[0].Field, response[0].KeyData[0].Value);
client.Close();
}
catch (Exception e)
{
Console.WriteLine("Exception : {0}", e.Message);
client.Abort();
}
Console.ReadLine();