WCF (Web Services)

How can we improve WCF?

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Make it easier to set the serialization type for an endpoint in the endpoint config alone

    I shouldn't need to decide if an operation's content is going to be serialized in XML or JSON when I'm adding it to the service contract. I should be able to specify this from the endpoint configuration alone.

    4 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • Better Timeout Exception Logging

      If you've worked with WCF for any amount of time you've no doubt had to pour through trace files and then try to decipher exactly what timeout setting was causing a particular transaction to fail.

      The exceptions thrown by WCF should provide much more concise information- such that it shouldn't be necessary to enable tracing and pour through logfiles to determine the root cause of a particular failure.

      4 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Multiple Services under one session.

        I want to segregate my operation contracts into many service contracts. But still want to authenticate user once and allow him to consume other service contracts without asking credentials.

        If possible I would like to share some information between service contracts, just like ASP.NET session

        4 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • 3 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • Ability to skip operation and manually generate custom response

            A simple way to transition from IDispatchMessageInspector.AfterReceiveRequest directly into BeforeSendReply skipping the actual operation code and instead manually crafting a response message. This is required to handle preflighted POST requests in CORS and other scenarios.
            http://blogs.msdn.com/b/carlosfigueira/archive/2012/05/15/implementing-cors-support-in-wcf.aspx
            http://social.msdn.microsoft.com/Forums/eu/wcf/thread/55ef7692-25dc-4ece-9dde-9981c417c94a
            http://social.msdn.microsoft.com/Forums/nl/wcf/thread/251188b6-87ff-43c8-b6a3-cb77e7aa62e0

            3 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
            • Enhance the offical docs on each extensibility class and show how to instatiate and wire it into WCF

              WCF has some of the best extensibility I have ever seen in a complex software system, but it is VERY difficult to figure out how to actually instantiate your own version of some of the classes and get them wired into WCF correctly. Carlos Figueira's WCF Extensibility blog is awesome, but that is a narrative format, not a reference format. And his blog does not cover all wire up scenarios.

              For example, at this moment I an trying to figure out how to wire up my own version of a IDispatchMessageFormatter implementation. He mentions how to do this in his…

              3 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Document 'under-the-covers' request-processing workflow when using WCF extesnsions.

                Document 'under-the-covers' request-processing workflow when using WCF extesnsions. Eg Gotchas in concurrent request handling scenarios (statics shared across contexts unexpecedly making life miserable for service developers )

                3 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • 3 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Implement full support for Username Token Profile 1.0 and 1.1

                    Current WCF implementation supports only PasswordText mode from Username token profile 1.0. Provide out-of-the box implementation for PasswordDigest which is very commonly used on other platforms (and was also supported in WSE) and also UsernameToken for key derivation defined in Username in Username token profile 1.1.

                    3 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • Small web server using WCF

                      Host web client (may be ASP.NET enabled) in standalone application or service near or using WCF.

                      3 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                      • router can expose wsdl easily

                        router services can be expose wsdl for better implementation

                        3 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                        • Improve webHttpBinding performance

                          At the moment performance of raw IHttpModule as well as Asp.Net web API is way better than webHttpBinding endpoints. Rewriting all WCF stuff is not an option. Real optimization from MS is needed to keep WCF on top.

                          3 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • Provide base classes to help when writing implementations of IChannelFactory and IChannelListener

                            Sometimes I need to create a custom BindingElement to accomplish some task where the simpler extension points won't be sufficient. It takes an awful-lot of boilerplate code to do this, even when the amount of work I'm trying to achieve is minimal.

                            2 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • Add support to view/modify Soap headers

                              When working with web services, to view or modify the SOAP headers requires a whole bunch of work. Why not had a beforeSend event that can be used to dump (or modify) the soap contents. And a afterReceive event that allows me to view the raw SOAP that comes from the server.

                              I know this can be done, but it takes a ton of code and trying to find any examples that work, have all the necessary details, etc. is incredibly difficult to do.

                              2 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                              • 2 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • Keep-alive for bindings/channels

                                  This is something that is implemented over and over again with different approaches and different combinations of settings. Channel timeouts are good, but the mechanism we use to keep them alive when things are good would be nice if that was an out-of-the-box feature.

                                  2 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Support ISet

                                    It'd be nice if we can describe, in the SOAP interface, that a method's return value is unordered and cannot contain duplicates.

                                    Currently, if a method returns an ISet, it causes SerializationException on the server side when a HashSet is returned, and it causes Add Service Reference to give an "object" typed property.

                                    2 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • 2 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Add interface to access to properties and methods of ClientBase<TChannel> that are not depend on TChannel type parameter.

                                        It would be good to have intermediate interface like

                                        public interface IClientBase : ICommunicationObject
                                        {
                                        ClientCredentials ClientCredentials { get; }
                                        ServiceEndpoint Endpoint { get; }
                                        ...
                                        }

                                        and ClientBase<TChannel> definition as

                                        public abstract class ClientBase<TChannel> : IClientBase, IDisposable where TChannel : class

                                        This will allow to write common methods for any client like

                                        void SetupClientCredentials(IClientBase client)
                                        {
                                        client.ClientCredentials.UserName.UserName = someUserName;
                                        client.ClientCredentials.UserName.Password = somePassword;
                                        }

                                        1 vote
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Provide cluster singleton

                                          We need a way to build the service which is singleton in cluster with state persistence.

                                          1 vote
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          WCF (Web Services)

                                          Feedback and Knowledge Base