Providing metadata for WCF 4.0 Rest Template Service

Something very basic is probably missing. I created WCF 4.0 Recreation. It works without problems when I click the url from the browser and I get back to what I want.

But now I want to use this service from the mvc client application (it will also be used by other non.net platforms, so this is primarily a holiday service).

The problem is, how do I get a link to a service so that I can start using it in my C # code? With the new minimal WCF.net 4 config solution and without an interface for a service contract, I don’t know how to specify the mex endpoint. Ultimately, I do not want to have a mex endpoint in production, only during development. I would like to be able to indicate that all my services (about 10 in one application) have endpoints with one tiny piece of configuration that converts vs2010.config conversions when published.

+3
source share
1 answer

. REST . ( Mex) SOAP-, WSDL 1.1 ( WADL WSDL 2.0 REST, WCF.

REST WebRequest ChannelFactory . . - HttpClient REST Starter kit ( API). Starter , RTM ( WCF 4). REST WCF 4 , . REST WCF 4 - /help sufix . REST.

+14

Source: https://habr.com/ru/post/1792920/


All Articles