Qlik Community

QlikView Publisher

Discussion Board for collaboration on QlikView Publisher.

leonardo_raed
New Contributor III

Qlikview SDK "Service Key is Missing"

Hi guys,

I try to use the SDK in Visual C# 2010 Express. I follow the steps in "Getting started QMS API.pdf" but throw the "Service Key is Missing" exceptions in the line "ServiceKeyClientMessageInspector.ServiceKey = Key;"

Any ideas?

Leo.

1 Solution

Accepted Solutions
Not applicable

Re: Qlikview SDK "Service Key is Missing"

The most likely cause for this error would be that the following line is missing in your config file:

behaviorConfiguration="ServiceKeyEndpointBehavior".

This should be placed before the end tags of each endpoint address node.

5 Replies
Not applicable

Qlikview SDK "Service Key is Missing"

Hi, i'm having the same problem, did you resolve it?? any ideas please??

Not applicable

Re: Qlikview SDK "Service Key is Missing"

The most likely cause for this error would be that the following line is missing in your config file:

behaviorConfiguration="ServiceKeyEndpointBehavior".

This should be placed before the end tags of each endpoint address node.

schlettig
Contributor

Re: Qlikview SDK "Service Key is Missing"

Hi Andrew,

thanks for that hint. It solved my problem!

The <serviceKeyBehavior /> entry in the web.config is still blue underlined.

But the exception with the "serviceKey" missing is gone!

Using dotnet 4, Visual Studio 2010.

Best regards,

Christian

Not applicable

Re: Qlikview SDK "Service Key is Missing"

Sorry for taking so long.

The issue with the blue underline is a.NET bug with intellisense. The code should still compile and run fine.

hgpatel172
Contributor

Re: Qlikview SDK "Service Key is Missing"

Thanks Andrew. It worked like charm.

I added that line as shown below in bold.

<client>

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

        bindingConfiguration="BasicHttpBinding_IQMS" contract="QMSBackendService.IQMS"

        name="BasicHttpBinding_IQMS" behaviorConfiguration="ServiceKeyEndpointBehavior" />

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

        bindingConfiguration="BasicHttpBinding_IQTService" contract="QMSBackendService.IQTService"

        name="BasicHttpBinding_IQTService" behaviorConfiguration="ServiceKeyEndpointBehavior" />

    </client>

Community Browser