none
What is the difference between ConfigurationName and Name attribute in XAMLX of a workflow service

    Question

  • Hi,

    What is the difference between ConfigurationName and Name attribute in XAMLX of a workflow service.

    Can they be different or have they to be same at all the times.

    Thanks

    Suchi

    Friday, June 04, 2010 4:22 AM

Answers

  • Hi Suchi,

    They can be different.

    Name attribute is the name of the service you are exposing, e.g. CaculatorService. This is the name that WSDL will show for the service.

    ConfigurationName specifies how a service find its configuration. Basically it can be anything, but need match with the config file. Say if you set the property called "Something", then in your configuration, you need set the service tag with name "Something" too. Then the workflow service knows this is its configuration and load it. This attribute will not expose to service consumer.

    <system.serviceModel>
      <services>
       <service name="Something">
        <host>
         <baseAddresses>
          <add baseAddress="http://MyUrl.com/MyService" />
         </baseAddresses>
        </host>
       </service>
      </services>

    thanks,

    Anders


    This posting is provided "AS IS" and confers no rights or warranties.
    Friday, June 04, 2010 7:38 AM
    Moderator

All replies

  • Hi Suchi,

    They can be different.

    Name attribute is the name of the service you are exposing, e.g. CaculatorService. This is the name that WSDL will show for the service.

    ConfigurationName specifies how a service find its configuration. Basically it can be anything, but need match with the config file. Say if you set the property called "Something", then in your configuration, you need set the service tag with name "Something" too. Then the workflow service knows this is its configuration and load it. This attribute will not expose to service consumer.

    <system.serviceModel>
      <services>
       <service name="Something">
        <host>
         <baseAddresses>
          <add baseAddress="http://MyUrl.com/MyService" />
         </baseAddresses>
        </host>
       </service>
      </services>

    thanks,

    Anders


    This posting is provided "AS IS" and confers no rights or warranties.
    Friday, June 04, 2010 7:38 AM
    Moderator
  • Ok, So ServiceContract(Service Contract Interface from xamlx) and Service Name(name attribute from xamlx) will be exposed to client through wsdl and ConfigurationName specifies how a service find its configuration. Am I right?
    Friday, June 04, 2010 9:19 AM
  • Yes:)
    This posting is provided "AS IS" and confers no rights or warranties.
    Saturday, June 05, 2010 2:23 PM
    Moderator