We already know how to create basic WCF service application. Refer Here
We also know how to invoke WCF service from client application. Refer Here
Till now we created wcf service with single Service Contract.
Lets create multiple service contracts in our WCF application's
We also know how to invoke WCF service from client application. Refer Here
Till now we created wcf service with single Service Contract.
Lets create multiple service contracts in our WCF application's
Now to define these both service contracts (Interfaces),We need to implement both interface in the class and
define the methods.
Now after these we need to configure the end points in config file.
So to make them available to client we need to configure 2
endpoints for both service contracts separately as explained in previous posts. Refer Here
And also host wcf service, For this lets use console
application as done above (EndPoint configure & Host WCF).
For end point configuration need to add application config file and configure:
Now
create client application to invoke this wcf service:
We already have a post for the basic to create client application. Refer Here
Here while creating the object of proxy class we have to pass the name of the end point as parameter.
In the above screen shot its clearly defined.
In the above screen shot its clearly defined.
No comments:
Post a Comment