WCF/WF - how to create 2 endpoints(basichttp and nettcp) in wcf service

Asked By brahma naidu on 15-Apr-13 08:25 AM
Hai friends this is Brahmanaidu. i am working with wcf services. i need to create 2 end points in wcf service . but i dont have idea how to create like that . can any body help me plz how to create that in wcf service web.config file. Thanks you
sri replied to brahma naidu on 18-Apr-13 06:13 AM
Hi,

 go to ur web.config file

http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/26775170-1f24-4b27-b299-5674ec747a91/
<services>
  <service behaviorConfiguration="Default" name="MyProject.Authorization">
   <endpoint address="ws" binding="wsHttpBinding" contract="MyProject.IAuthorization" />
   <endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" contract="MyProject.IAuthorization" />
   <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>