Results 1 to 2 of 2

Thread: Configure WCF in spring without using app.config/web.config

  1. #1
    Join Date
    Jan 2012
    Posts
    1

    Default Configure WCF in spring without using app.config/web.config

    Hi,

    If I understand the documentation correctly only some properties (for WCF) can be specified in the spring config file while the rest must still be
    configured in the app/web config.

    From the documentation
    <services>
    <service name="calculator" behaviorConfiguration="DefaultBehavior">
    <host> ... </host>
    <endpoint> ... </endpoint>
    </service>
    ...
    </services>


    Is it possible to specify these properties in the spring file as I would like to only have one file for my WCF Service configuration?
    (I.e. not have to configure in both the spring configuration file and the app/web config file)

    Thanks

    Roaan

  2. #2
    Join Date
    Nov 2011
    Posts
    4

    Default

    Hi,

    In sour Web.config file, you can specify a WCF Service configuration file

    <system.serviceModel>
    <services configSource="Config\services.config.xml"/>
    ...
    </system.serviceModel>


    and in your services.config.xml, you specify your web services configuration

    <services>
    <service name="calculator" behaviorConfiguration="DefaultBehavior">
    <host> ... </host>
    <endpoint> ... </endpoint>
    </service>
    ...
    </services>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •