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

 go to ur web.config file

  <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" />