Bonjour.
Apres avoir suivi ce tutorial http://www.codeproject.com/Articles/...-using-WCF-fro, j'ai réussi a réaliser mon web service aussi ma connexion avec mon SQL Server 2008.
je comprend pas la dernière étape de ce tutorial en vu d'afficher mon résultat.
le ServiceCustomerClient provient d'où? aussi le getCustomerCompleted ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 ServiceCustomerClient obj = new ServiceCustomerClient(); obj.getCustomerCompleted += new EventHandler<getCustomerCompletedEventArgs> (DisplayResults); obj.getCustomerAsync(1); } void DisplayResults(object sender, getCustomerCompletedEventArgs e) { LayoutRoot.DataContext = e.Result; }
Merci
solaar
Partager