WCF Service Base Address Http and netTcp

前端 未结 2 1268
时光说笑
时光说笑 2021-02-08 11:08

I have two base addresses defined in my WCF Service config file:


      
  

        
2条回答
  •  醉酒成梦
    2021-02-08 11:42

    You defined a Net.TCP base address to be:

    net.tcp://localhost:8001/TemplateReportService
    

    Your endpoints with Net TCP are:

    and

    So their complete service address will be "netTcp base address" + "relative address as defined on the element" - this gives:

    net.tcp://localhost:8001/TemplateReportService/TemplateService
    

    and

    net.tcp://localhost:8001/TemplateReportService/ReportService
    

    respectfully.

    Can you use them at these addresses??

    Also - you defined a "mex" (metadata exchange) endpoint for the HTTP protocol - that's why you can see something when you navigate to the HTTP address. But you did not specify a MEX endpoint for netTcp.

提交回复
热议问题