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.
Riddhi ValechaRank #794 · 2.9K reputationPosted Apr 28, 2016, 10:53 PM EDT
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 pal179 reputationPosted Apr 28, 2016, 4:23 AM EDT
gaurav pal179 reputationPosted Apr 29, 2016, 3:36 AM EDT
bindingConfiguration="BasicHttpBinding_Service1" contract="ServiceReference1.Service1"
Riddhi ValechaRank #794 · 2.9K reputationPosted Apr 30, 2016, 2:15 AM EDT
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 pal179 reputationPosted Apr 30, 2016, 11:54 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts