Hi all....
Do anyone have a working project on WCF Services ??
I made a sample WCF Portal.
So, I want to know the difference between -
Service1 - Class
Service1Channel
Service1Client
ServiceReference
-----------------
Do anyone have some good video tutorials site / link that we can see and learn.
gaurav palPosted Apr 30, 2016, 3:54 PM
Riddhi ValechaPosted Apr 30, 2016, 6:15 AM
While I run the application on my localhost, the endpoint address is -
http://localhost:21345/MyWCFService.svc
-------
When I deploy this in other server , I need to change the endpoint address.
New server on which my application is deployed is - 12.11.14.15
-----
Can we have a common endpoint so we do need to change is on repeated basis ??
gaurav palPosted Apr 29, 2016, 7:36 AM
bindingConfiguration="BasicHttpBinding_Service1" contract="ServiceReference1.Service1"
Riddhi ValechaPosted Apr 29, 2016, 2:53 AM
Hi...
Thanks a lot......
I still have few queries...
1. I made a sample method - public int add(int i, int j) {return (i+j);}
When I call this method in aspx.cs file, I get two methods - add(int i,int j) and addasync(int i,int j)
what is the difference between these two methods and which one to use.
2. I have deleted the Interface (IService.cs) file from my portal and made all methods in class file (Service.cs).
Is this acceptable ?
3. End Point -
In wcf service portal, my webconfig file is -
name="BasicHttpBinding_Service1" />
-------
My Query is-
Localhost now runs perfectly..
But, once I publish the website and host in server (other machine - 1.1.1.1), then endpoint issue arises.
I want a solution such that -
1. endpoint address must be a specific URL
2. No need to change it on repeated basis. Once fixed in webconfig file, it must work everywhere.
I tried the following -
name="BasicHttpBinding_Service1" />
name="BasicHttpBinding_Service1" />
-------
but none worked...
Please guide
gaurav palPosted Apr 28, 2016, 8:23 AM