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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:19:59+00:00 2026-06-13T03:19:59+00:00

When I add a service reference to my MVC3 application: I obtain methods which

  • 0

When I add a service reference to my MVC3 application: I obtain methods which take a guid in parameter:

void getcities( string token);
void getCountry( string token);

but when I add a service reference to a Windows 8 application, the proxy generated doesn’t include a token:

public System.Threading.Tasks.Task<Maquette_MyAirport_Win8.ServiceFlightInfo.CitiesResponse> GetAllCitiesAsync() 
{
  Maquette_MyAirport_Win8.ServiceFlightInfo.BaseRequest inValue = new Maquette_MyAirport_Win8.ServiceFlightInfo.BaseRequest();

  return ((Maquette_MyAirport_Win8.ServiceFlightInfo.FlightInfoService)(this)).GetAllCitiesAsync(inValue);
}

So when I call this method without a guid, it throws an error: you are not authorized to access this service.

Do you have any solution, please?

  • 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-06-13T03:20:01+00:00Added an answer on June 13, 2026 at 3:20 am

    The response is that the [System.ServiceModel.MessageHeaderAttribute] is not supported in windows 8.

    So i add a custom behavior like this to inject headermessage:
    How to add a custom HTTP header to every WCF call?

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

Sidebar

Related Questions

trying to add service reference to my windows 8 application. But the asmx file
I've used Visual Studio's Add Service Reference feature to add a service (actually it
When I add a service reference to my Visual Studio 2010 C# project, a
I want to add service reference to SQL reporting services on local machine. In
When I add a Service Reference in Visual Studio to a service, it keeps
How can I create a client proxy without svcutil.exe or add service reference in
There's lots of material explaining why using svcutil.exe (or 'add service reference') is bad
I'm trying to build a light-weight SOAP client without using Add Service Reference. Ideally,
I am trying to add service reference. There was an error downloading metadata from
I'm trying to Add Service Reference to SharePoint web services (e.g., http://cogent-moss/_vti_bin/Webs.asmx ), but

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.