I created a wcf service but it doesn't work with an entity object. I tested it with List<String>
and it worked but it doesn't work with an entity.
I have this message :
The HTTP request to 'http://localhost:26823/test/Service.svc' has exceeded the allotted timeout of 00:00:59.9950000. The time allotted to this operation may have been a portion of a longer timeout.
This my code :
[ServiceContract]
public interface IService
{
[OperationContract]
List<Contrat> GetData(int value);
}
and
public List<Contrat> GetData(int value)
{
contratsDispo = (MYLINQ).ToList();
return contratsDispo;
}
I have my data here. I looked here.
My code for windows phone :
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
{
ServiceClient client = new ServiceClient();
client.GetDataAsync(1);
client.GetDataCompleted +=new EventHandler<GetDataCompletedEventArgs>(client_GetDataCompleted);
}
void client_GetDataCompleted(object sender, GetDataCompletedEventArgs e)
{
if (e.Result != null)
{
....
}
}
thx for your help