I'm having trouble performing this task, I need to fetch data that is stored via mysql
on a website and display them in my app that is being developed in Xamarin Forms
, so I need to webservice
. I have the following context:
In my XAML file
<Label Text="Cliente" Grid.Row="0" Grid.Column="2" FontAttributes="Bold" />
<ListView x:Name="coluna2" Grid.Column="2" Grid.Row="1" SeparatorColor="White"
SeparatorVisibility="Default"/>
I created a class called ClientRequest
public class ClienteRequest
{
public string cpfcnpj { get; set; }
public string nomefantasia { get; set; }
}
and in my codeBehind is thus provisionally
List<String> itens2 = new List<String>()
{
"dados do banco"
};
coluna2.ItemsSource = itens2;
Here would be the address where the data will be consumed:
And here would be the url of the given function:
data / _gettingcollector.php
How would I get past these urls and retrieve this data by displaying them in the listview?