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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:31:04+00:00 2026-06-13T19:31:04+00:00

A question someone asked in 2008, about proxy-generation of client-side behaviors , I’d like

  • 0

A question someone asked in 2008, about proxy-generation of client-side behaviors, I’d like to repeat. I want custom client-side behaviors, decorated as attributes on service contracts or operations, to be “acknowledged” by Visual Studio (or svcutil) when I execute “discover” on the add-service-reference dialogue. The result would be a proxy that already has the client-side behaviors (and assembly references) added automagically.

That feature still seems unavailable as of VS 2010 SP1. Does VS 2012 do that? Is there a 3rd party tool that does that?

p.s. To be clear, I am not asking about extending WSDL capabilities. I don’t expect the above trick would ever work for that. I am talking strictly in the context of the “discover” button within Visual Studio’s in-built proxy generation capability.

  • 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-13T19:31:05+00:00Added an answer on June 13, 2026 at 7:31 pm

    I’m not sure that it is possible using svcutil/add service reference, but as an alternative the .NET Framework has a class called MetadataResolver that allows you to get configuration at runtime from a MEX / wsdl endpoint.

    Specifically you call the Resolve method returns a ServiceEndpointCollection instance. A ServiceEndpoint has a Behaviors property that returns the collection of behaviors as defined on the service.

    In this case instead of having the class decorated with the attribute you call the service to retrieve your behaviors. This has the advantage of allowing you to define in one place (the service) the configuration for clients and the server and keep them in sync (as opposed to service config updates needed to be done on clients as well). The negatives are that you now make two calls when calling the service (though I’ve mitigated in the past by having a static instance and keeping the response from the Resolve method in memory) and you need to expose the service metadata.

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

Sidebar

Related Questions

On a recent question about MVC attributes, someone asked whether using HttpPost and HttpDelete
I asked a question earlier about extracting RAR archives in Java and someone pointed
Note The question below was asked in 2008 about some code from 2003. As
Someone asked me a question via e-mail about integer partitions the other day (as
Someone asked this question about a year ago but I was unable to turn
In a recent question, someone asked about static methods and one of the answers
Someone asked the question: INT, BIGINT or UUID/GUID in Oracle, DB2, Derby and HSQLDB?
I found this on Google, click here , which someone asked a similar question,
Someone has asked the exact same question in April, without any answer. But since
Fairly straightforward question here, but I can't seem to find someone who has asked

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.