Look please my web service codes return type List
i get data from web service with listformat List; also created a gridview below and return list to gridview datasource.Bur eror occurs:
A field or property with the name 'name' was not found on the selected data source.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField HeaderText="Ad" DataField="name" />
<asp:BoundField HeaderText="SoyAd" DataField="surname" />
<asp:BoundField HeaderText="Numara" DataField="number" />
</Columns>
</asp:GridView>
wstest ws = new wstest();
GridView1.DataSource = ws.GetList(); ;
GridView1.DataBind();