C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » WCF »

Wcf communication


Posted Date: 31 Oct 2009      Posted By: Sagar      Member Level: Bronze     Points: 1   Responses: 1



Suppose a scenario
1)one windows form application using tcp.
2)one web application using http.

I want to communicate between above two application using WCF. What kind of changes i need to done in endpoints of WCF? is there any changes need to done on the configuration file of windows and web application?





Responses

Author: Hari    01 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

You need to have a http endpoint(basichttpbinding/wshttpbinding) in WCF to communicate with you web app and have another endpoint with nttcpbinding to communicate with your windows app. Basically you need to add two endpoints to your wcf service config one with httpbindign and another with nettcpbinding and when calling from windows forms app and web app use the appropriate endpoint to call you service.
Hope i explained it well.



Post Reply
You must Sign In to post a response.
Next : Wcf
Previous : Error while passing sql parameters to stored procedure in WCF
Return to Discussion Forum
Post New Message
Category: WCF

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use