Skip to main content
Announcements
Qlik Community Office Hours, March 20th. Former Talend Community users, ask your questions live. SIGN UP
cancel
Showing results for 
Search instead for 
Did you mean: 
gballester
Creator
Creator

Service key is missing

I have a problem and maybe one of you has already had something similar.
Automatically assign and unassign cals and nominal users from a web application by calling the api and QlikView services.

In QlikView 11 everything works ok. When I associate the new QMC12 service to my C # application, I get the following error.

System.ServiceModel.FaultException: 'Service key is missing'
I think the problem comes with how my app.config is configured
My app.conifg file is:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

    <startup>

        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />

    </startup>

    <system.serviceModel>

      <standardEndpoints>

        <announcementEndpoint>

          <standardEndpoint name="NewStandardEndpoint0" />

        </announcementEndpoint>

      </standardEndpoints>

      <extensions>

        <behaviorExtensions>

          <add name="serviceKeyBehavior" type="QMSAPIStarter.ServiceSupport.ServiceKeyBehaviorExtensionElement, QMSAPIStarter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>

        </behaviorExtensions>

      </extensions>

      <behaviors>

        <endpointBehaviors>

          <behavior name="ServiceKeyEndpointBehavior">         

          </behavior>

        </endpointBehaviors>

      </behaviors>

     

       

        <bindings>

            <basicHttpBinding>

                <binding name="BasicHttpBinding_IQMS">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQMS1">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQMS2">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQTService">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQTService1">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

                <binding name="BasicHttpBinding_IQTService2">

                    <security mode="TransportCredentialOnly">

                        <transport clientCredentialType="Ntlm" />

                    </security>

                </binding>

            </basicHttpBinding>

        </bindings>

        <client>     

            <endpoint address="http://arbue1ap47:4799/QMS/Service" binding="basicHttpBinding"

                bindingConfiguration="BasicHttpBinding_IQMS" contract="QMSAPIService.IQMS"

                name="BasicHttpBinding_IQMS"

            />

            <endpoint address="http://arbue1ap47:4799/QMS/Service" binding="basicHttpBinding"

                bindingConfiguration="BasicHttpBinding_IQMS1" contract="QMSAPIService.IQMS1"

                name="BasicHttpBinding_IQMS1"

            />

            <endpoint address="http://arbue1ap47:4799/QMS/Service" binding="basicHttpBinding"

                bindingConfiguration="BasicHttpBinding_IQMS2" contract="QMSAPIService.IQMS2"

                name="BasicHttpBinding_IQMS2"

            />

            <endpoint address="http://arbue1ap47:4799/ANY/Service" binding="basicHttpBinding"

                bindingConfiguration="BasicHttpBinding_IQTService" contract="QMSAPIService.IQTService"

                name="BasicHttpBinding_IQTService"

            />

            <endpoint address="http://arbue1ap47:4799/ANY/Service" binding="basicHttpBinding"

                bindingConfiguration="BasicHttpBinding_IQTService1" contract="QMSAPIService.IQTService1"

                name="BasicHttpBinding_IQTService1"

            />

            <endpoint address="http://arbue1ap47:4799/ANY/Service" binding="basicHttpBinding"

                bindingConfiguration="BasicHttpBinding_IQTService2" contract="QMSAPIService.IQTService2"

                name="BasicHttpBinding_IQTService2"

          />

        </client>

    </system.serviceModel>

</configuration>

Thank you
1 Solution

Accepted Solutions
gballester
Creator
Creator
Author

I finally found how to solve this error.

qvCommunity0001.jpg

You have to add the following line before the end of each address note in the app.config file.

behaviorConfiguration="ServiceKeyEndpointBehavior".

i uploaded an example image.

View solution in original post

1 Reply
gballester
Creator
Creator
Author

I finally found how to solve this error.

qvCommunity0001.jpg

You have to add the following line before the end of each address note in the app.config file.

behaviorConfiguration="ServiceKeyEndpointBehavior".

i uploaded an example image.