OK - after an intensive coding session I can now proudly say that I understand 4 attributes of the WCF configurations (of the 1200 + that exists ;))
The attributes that you should set are:
- ServiceBehavior.Namespace - this get generated as the
targetNamepace
in the wsdl (instead of http://tempuri.org/). Also you should use this namespace in the endpoint, with thebindingNamespace
-attribute in the config-file:<endpoint bindingNamespace="https://www.marcusoft.net/Services/" />
- ServiceBehavior.ConfigurationName - this is the name that you use as service name in the configuration file:
<service name="OffertTjanst" \>
- ServiceBehavior.Name - the name property has solely to do with the generated wsdl-file. It is generated as the Name-attribute in the wsdl-file:
<wsdl:definitions name="ListDataTjanst" ...
- ServiceContract.ConfigurationName - (note: this is on the interface, service contract, all other attributes are on the service implementation) this name is used to reference the interface in the endpoint:
<endpoint address="..." binding="..." contract="OffertContract" />
As I said at the start. These are the configurations I think are important - and the ones I feel really comfortable with… up to now.