How can I consume a web service in VS2010 WP7? I try to use a WCF but can not get it to call the function - only offers functionAsync or similar? Have googled to my hearts content but can not find a solution. Thanks!
How can I consume a web service in VS2010 WP7? I try to use a WCF but can not get it to call the function - only offers functionAsync or similar? Have googled to my hearts content but can not find a solution. Thanks!
WCF in Windows Phone only supports asynchronous methods, use a WithEvents variable or add event handlers with AddHandler statement. Each service method has an async method and a corresponding event that returns the result.
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly
that's great but can I use an existing Web Service as I did on a WM6 app?
You can use a WCF client (service reference) with old soap service, if that is what you meant.
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly
Bookmarks