Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,

I'm currently trying to make a Windows 7 mobile app that is able to retrieve information from the database for my shopping list app. I am displaying my information using textblocks. Each segment would consist of 2 textblocks, which is the name of the item and the price of the item. The step that is that I am getting ActionNotSupportedException.

I do not know how to call the methods in my mobile solution, which is ShopWCFClient. I had delcare my methods inside the OperationContract in my web solution. How do I Declare it in my mobile solution? Anyone have any sample that I can refer to? Thanks!
Posted
Updated 25-Jan-12 20:28pm
v2

1 solution

You should be able to make an instance of ShopWCFClient and then just call the methods on it that are on your web service.
ShopWCFClient client = new ShopWCFClient();
var myData = client.GetData();

I use an online web service like this for a WP7 app that I have and it works quite well. I can send you samples later if you want or can help you if you give me the address of the web service.
 
Share this answer
 
Comments
StarStarStarStarStar 11-Apr-12 21:48pm    
I'm beginning web services with WP7. Could you send me example about this? thank in advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900