hello every one,
please help me as soon as possible, i create on web application with webservice of NAV 2009, i fatch data of cutomer card successfully but i dont able to update customer data and create new customer.. ](*,)
i write code for fatch data of cutomer card are as under and it is work perfactly..but what about update and create new customer..
protected void Page_Load(object sender, EventArgs e)
{
Customer_Service Service = new Customer_Service();
Service.UseDefaultCredentials = true;
Customer[] Customers = Service.ReadMultiple(null, null, 0);
for (int i = 0; i < Customers.Length; i++)
//ListBox1.Items.Add(Customers.No);
DropDownList1.Items.Add(Customers.No);
}
protected void Button2_Click(object sender, EventArgs e)
{
Customer_Service service = new Customer_Service();
service.UseDefaultCredentials = true;
TextBox1.Text = service.Read(DropDownList1.SelectedItem.Value).Name;
TextBox2.Text = service.Read(DropDownList1.SelectedItem.Value).Address;
TextBox3.Text = service.Read(DropDownList1.SelectedItem.Value).Phone_No;
TextBox4.Text = service.Read(DropDownList1.SelectedItem.Value).City;
}
Now please give me solution as soon as possible... ]
0
Comments
Just open this URL and read the documentation... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks again
Regards
Pinakin Patel
In most cases, the answers are already there... somewhere... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
First You Have to publish Web service in Navision Webservice table and then use this web service in your web application.
For create
For Update
Navision Technical Consultant