rolandz
11-28-2009, 09:46 AM
Hi
What I would like to have is to be able to configure WPS without having system.serviceModel section in the application configuration (app.config).
All my attepts fail until now as I am really newbe to the WCF and possibly don't have enough knowledge.
The question is whether it is possible at all.
My current server configuration is as follows:
<object id="service" type="WCF.Server.Service, WCF.Server">
</object>
<object id="serviceExporter" type="Spring.ServiceModel.ServiceExporter, Spring.Services">
<property name="TargetName" value="service"/>
<property name="MemberAttributes">
<dictionary>
<entry key="Foo">
<object type="System.ServiceModel.OperationContractAttribute, System.ServiceModel">
</object>
</entry>
</dictionary>
</property>
</object>
<object id="serviceHost" type="Spring.ServiceModel.Activation.ServiceHostFactoryO bject, Spring.Services">
<property name="TargetName" value="serviceExporter" />
</object>
...but it is not enough I think.
Also - the same wish for the client side? How to get it working without standard WCF configuration?
Finally: the motivation is to have a possibility to have WCF configuration parametrized by others, like command line arguments, whatever else arguments... /espacially command line/
TIA
What I would like to have is to be able to configure WPS without having system.serviceModel section in the application configuration (app.config).
All my attepts fail until now as I am really newbe to the WCF and possibly don't have enough knowledge.
The question is whether it is possible at all.
My current server configuration is as follows:
<object id="service" type="WCF.Server.Service, WCF.Server">
</object>
<object id="serviceExporter" type="Spring.ServiceModel.ServiceExporter, Spring.Services">
<property name="TargetName" value="service"/>
<property name="MemberAttributes">
<dictionary>
<entry key="Foo">
<object type="System.ServiceModel.OperationContractAttribute, System.ServiceModel">
</object>
</entry>
</dictionary>
</property>
</object>
<object id="serviceHost" type="Spring.ServiceModel.Activation.ServiceHostFactoryO bject, Spring.Services">
<property name="TargetName" value="serviceExporter" />
</object>
...but it is not enough I think.
Also - the same wish for the client side? How to get it working without standard WCF configuration?
Finally: the motivation is to have a possibility to have WCF configuration parametrized by others, like command line arguments, whatever else arguments... /espacially command line/
TIA