1

I'm using query string based api keys for my WCF Data Service. I can handle this on the server pretty easily -- How would you implement API key in WCF Data Service?

However, how do I send the extra query string arguments from the client, using the Add Service Reference feature of VS2010? I saw an example for doing it when querying, but certainly not when adding/updating objects.

Community
  • 1
  • 1
David Pfeffer
  • 38,869
  • 30
  • 127
  • 202

1 Answers1

1

You have several options:

Yahia
  • 69,653
  • 9
  • 115
  • 144
  • Unfortunately, `.AddQueryOptions` won't work with `.SaveChanges` / updates. How would `Credentials` help with query string parameters? It seems like my only option is the `SendingRequest` event. – David Pfeffer Jul 27 '11 at 11:17
  • there are several API key implementations possible with WCF - I wasn't sure what you implementation exactly is... so provided all methods I know of in this case... – Yahia Jul 27 '11 at 20:04