- app.config => Edit WCF configuration
- Open "Services" section, then "Endpoints" section.
- Select an endpoint for which you want to add metadata/MEX endpoint hosted with TCP binding
- Endpoints => New service endpoint
- Set Address to something like net.tcp://localhost:5060/MyEndpointMex
- Set Name to be something like MyEndpointMex
- Set Binding to mexTcpBinding
- Set Contract to IMetadataExchange
- Set ListenUriMode to Explicit
- Advanced => Service Behaviours => Add "New Service Behaviour Configuration"
Add serviceMedatadata section and set both HttpGetEnabled and HttpsGetEnabled to False
- Now start your service process, open VS 2008, select References and then Add Service Reference.
Put net.tcp://localhost:5060/MyEndpointMex in Address field.
- Enjoy
|
3 comments:
Great! Very Helpful
wow, thank you, very good, let me try!!!!
I really enjoyed that!
Post a Comment