Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my Windows 8 Phone Application, I need to get the message from a WCF service method where I have written a method.

I cannot able to call the method.

It is calling the methods asynchronously and raising exceptions.

This is the method in the service.
C#
public string Message()
{
    string str="Hello";;
    return str;     
}


How can I call in my UI, that is in MainPage.xaml.cs after creating the service reference.

I have already created service reference.

Please explain with example?

Thank you.
Posted
v2

1 solution

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