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 924293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:19:46+00:00 2026-05-15T19:19:46+00:00

My team and I are working against a few webservices that require SOAP Message

  • 0

My team and I are working against a few webservices that require SOAP Message Headers to be available when making a request. We are not in control of these webservices so we can’t change the implementation, even if we wanted to (or at least not without a lot of pain). We just need to be able to have authentication related information & a couple of other items passed through our message headers.

I’ve read of a few people who’ve had this problem in the past with no clear indication on if they succeeded in pulling it off on Monotouch.

Here’s what I’ve read: http://forums.monotouch.net/yaf_postsm2104.aspx so far.

Any ideas on what we can do to overcome this on the Monotouch framework?

Here’s what i’m trying to do for now:

        using (var scope = new OperationContextScope (client.InnerChannel)) 
        {
            client.GetHistories += handler;
            OperationContext.Current.OutgoingMessageHeaders.Add (MessageHeader.CreateHeader ("EnvironmentInfo", "http://schemas.contoso.com", 
                                                                 ServiceContext.Current.OperatingEnvironment));
            OperationContext.Current.OutgoingMessageHeaders.Add (MessageHeader.CreateHeader ("AuthenticationToken", "http://schemas.contoso.com", 
                                                                 ServiceContext.Current.Token));

            client.GetHistoriesAsync (ServiceContext.Current.OperatingEnvironment, ServiceContext.Current.Token, request);
        }

Thanks for your time.

JM

  • 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-15T19:19:47+00:00Added an answer on May 15, 2026 at 7:19 pm

    I was not able to get Message Headers to work with WCF in Mono 2.6. I tried several different ways (including how you do it in your example) – it just doesn’t work in Mono 2.6.

    I raised a bug for this, which I then closed after discovering it is fixed in the latest trunk. So if you run against Mono 2.7 or greater, this should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're a small dev team working with some GLSL that may be too large
I am working on a team that is exploring the possibility of adopting agile
Like most shops we've got a team of people working on various projects that
My team working in a project using Winforms application(c#) & MSSQL 2005 as database.
My team working on a php/MySQL website for a school project. I have a
There is a team working on acceptance testing X11 GUI application in our company,
I'm in a 10 person team working on a large legacy code base with
My team is working on a crappy old website and most of the pages
My team is working on a conversion project to convert one product (but with
Our team is currently working on a large project which makes heavy use of

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.