i created an WCF API in my silverlight web project using Silverlight enabled WCF Services with name API.
I added operation contract logic in this :
[OperationContract]
public int AddNums(int a, int b)
{
return (a + b);
}
Now i added a Service Reference named “APIRef” in SilverLight Client project.
Now i know one way to access it using http://localhost:2250/API.svc
and it show some information regarding the API etc
But i want that a remote device can access the AddNums(a,b) method
How can i access this….please give guide
Thanks
You should have a stub class on client side after adding the service reference.
You need to include it and call the method e.g.
The important thing is, to take the ***Client class