WCF NetTcpBinding with mex

前端 未结 3 1892
醉梦人生
醉梦人生 2020-12-03 14:22

I\'m trying to publish a wcf service using nettcpbinding. I want to publish metadata, using ?wsdl. I added the following line to the config file:



        
3条回答
  •  春和景丽
    2020-12-03 14:47

    You need to publish service metadata via http for wsdl. Add the following tag to the tag of your config file

    
      
        
          
        
      
    
    

    You will also need to specify an http address where the service metadata in wsdl will be available from. Add this to the node of your config file :

    
      
        
        
      
    
    

    Then if you go to http://localhost:8000/Service1?wsdl, you should see the wsdl for your service.

提交回复
热议问题