Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7628687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:38:28+00:00 2026-05-31T05:38:28+00:00

I have a WCF data service hosted on a IIS server; I am using

  • 0

I have a WCF data service hosted on a IIS server; I am using the Objective-C OData client implementation to query the WCF Data service.

I am now ready to deploy my service to a live server, and wish to provide an authentication mechanism, so that access to the service is restricted and also so I have an audit trail.

I have decided to use the ASP.NET Membership provider for this functionality. Users will register a username / password against a different (unprotected) service, which will enable them to access the restricted service.

I understand that I can use the ObjectConext::OnBeforeSend callback to setup the appropriate headers on the HTTP request, but I am unsure of how to do this. Would anyone have any examples?

EDIT

I do know how to add the headers to the request, this is not what I am asking. I am asking specifically, what headers do I actually add?

- (void) onBeforeSend: (HttpRequest*)request{
[request.m_httpHeaders.m_httpHeaders addEntriesFromDictionary:[NSDictionary
dictionaryWithObject:@"BlahBlahBlah" forKey:@"SomeHeader"]];
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:38:30+00:00Added an answer on May 31, 2026 at 5:38 am

    don’t know if it’s too late for you but here is the working way:

    - (void) onBeforeSend: (HttpRequest*)request{
         [request.m_httpHeaders.m_httpHeaders addEntriesFromDictionary:[NSDictionary
          dictionaryWithObject:@".ASPXAUTH=YourToken" forKey:@"Cookie"]];
     }
    

    OR (depends on your iOS version i guess)

    - (void) onBeforeHttpRequest: (HttpRequest*)request{
         [request.m_httpHeaders.m_httpHeaders addEntriesFromDictionary:[NSDictionary
          dictionaryWithObject:@".ASPXAUTH=YourToken" forKey:@"Cookie"]];
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF Service, hosted inside of IIS, using NHibernate for data access.
I have WCF service that is IIS-hosted and I have to send binary data
I have a Silverlight application using a WCF service hosted in IIS. I make
I have a Data Service created using WCF that internally uses nHibernate. This WCF
HI, I neet to pass chunk data from WCF service to client. I have
I have client application that uses WCF service to insert some data to backend
I'm fairly new to WCF but I have a WCF Service hosted in IIS
I have a WCF Service hosted on a server with Real IP but no
We have a WCF service, hosted on IIS7.5, that has to fetch some data
I have a WCF service hosted in IIS 5.1 on my development XP machine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.