Velocity Generator - Endpoint Configuration, address="" in Web.Config?

Jan 23, 2012 at 12:55 AM

During the process of generating a service contract and implementation using Velocity, there is a step involving creating the service endpoint.

Adding an endpoint with the basicHttpBinding and the default address http://localhost:9090/[ServiceName] generates and endpoint element in the web.config of the form:

<endpoint name="basicHttp[ServiceName]"







Is this a bug or is there some default assumption tucked away somewhere else of which I'm not aware?



Jan 23, 2012 at 1:48 AM

Hi Erikest,

For web.config, it will always be address="" because it will follow the URL of the site that is defined in IIS/WAS. The service URL will only appear in the app.config of Console or Windows Service Host. Non-IIS hosts are no longer unfolded by default as I am encouraging developers to use IIS/WAS Hosts. 

I will take a note to put a description on the code generator in the next version :)

Thank you for your feedback :)