Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. WCF

WCF

Scheduled Pinned Locked Moved The Lounge
csharpwcfquestion
27 Posts 13 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R realJSOP

    Is it just me, or does does WCF seem clunky, overly complicated, and clumsy?

    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
    -----
    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

    M Offline
    M Offline
    martin_hughes
    wrote on last edited by
    #7

    I thought it was pretty easy and straight forward to be honest, especially when it took me all of 5 minutes to host a WCF service within a windows service.

    1 Reply Last reply
    0
    • S Shog9 0

      Rama Krishna Vavilala wrote:

      The thing I really like about it is that it is pretty simple to remote your classes in different ways just by changing the configuration files.

      Is this actually a common need? Do a significant number of people actually develop using one transport/protocol and then deploy using another? What's the scenario there? I mean, when WCF was first announced, that feature was demo'd pretty heavily - "and now, by changing two lines in the app.config, we've switched from SOAP to REST for our protocol, and HTTP to carrier pigeons for our transport - and the client still displays 'hello world'!" It was cool. I clapped. Then i went home, back to cursing the SOAP layer for not working with the non-MS SOAP server that i need to use. And i just can't help but think that the flexibility was built into the wrong layer.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      R Offline
      R Offline
      Rama Krishna Vavilala
      wrote on last edited by
      #8

      Shog9 wrote:

      Is this actually a common need?

      For me yes. I wanted to support windows authentication and a custom authentication both together. No code changes simply expose the end points. For LAN users, I allow TCP and for users outside a firewall I allow WS*. It all worked well. Considering tons of code I wrote in the DCOM version of my application to support custom security and custom marshaling, WCF is certainly a welcome addition. The disclaimer here is that the product has not yet been deployed on actual customer site but in our test environment with or without firewall it worked well.

      Shog9 wrote:

      with the non-MS SOAP server

      Aha.. Interoperability has always been a pain with any WS technology. Incidentally, that is what WS were meant to solve. For J2EE interoperability, there is a project tango. http://java.sun.com/developer/technicalArticles/glassfish/ProjectTango/ Anyway, I will not blame WCF for interoperability issues. We need a CPHog for Safari:)

      D S U 3 Replies Last reply
      0
      • R Rama Krishna Vavilala

        Shog9 wrote:

        Is this actually a common need?

        For me yes. I wanted to support windows authentication and a custom authentication both together. No code changes simply expose the end points. For LAN users, I allow TCP and for users outside a firewall I allow WS*. It all worked well. Considering tons of code I wrote in the DCOM version of my application to support custom security and custom marshaling, WCF is certainly a welcome addition. The disclaimer here is that the product has not yet been deployed on actual customer site but in our test environment with or without firewall it worked well.

        Shog9 wrote:

        with the non-MS SOAP server

        Aha.. Interoperability has always been a pain with any WS technology. Incidentally, that is what WS were meant to solve. For J2EE interoperability, there is a project tango. http://java.sun.com/developer/technicalArticles/glassfish/ProjectTango/ Anyway, I will not blame WCF for interoperability issues. We need a CPHog for Safari:)

        D Offline
        D Offline
        David Stone
        wrote on last edited by
        #9

        Rama Krishna Vavilala wrote:

        We need a CPHog for Safari:)

        There's always Firefox for the Mac. ;)

        R 1 Reply Last reply
        0
        • D David Stone

          Rama Krishna Vavilala wrote:

          We need a CPHog for Safari:)

          There's always Firefox for the Mac. ;)

          R Offline
          R Offline
          Rama Krishna Vavilala
          wrote on last edited by
          #10

          Yes but I don't like it as much as Safari on Mac.

          You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK

          D J 2 Replies Last reply
          0
          • R realJSOP

            Is it just me, or does does WCF seem clunky, overly complicated, and clumsy?

            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #11

            Nope. I like it - I actually find it a better fit for remoting purposes, please it's relatively easy to secure. The biggest problem is a lack of decent articles on it. I started writing one on using it to communicate with Amazon S3, but packed it in when I was spending more and more time clunking round the Amazon API, rather than demonstrating "cool" ways of doing things in WCF. It may be time to revisit this, especially as Visual Studio 2008 makes creating and consuming WCF apps much easier.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            R M 2 Replies Last reply
            0
            • R Rama Krishna Vavilala

              Shog9 wrote:

              Is this actually a common need?

              For me yes. I wanted to support windows authentication and a custom authentication both together. No code changes simply expose the end points. For LAN users, I allow TCP and for users outside a firewall I allow WS*. It all worked well. Considering tons of code I wrote in the DCOM version of my application to support custom security and custom marshaling, WCF is certainly a welcome addition. The disclaimer here is that the product has not yet been deployed on actual customer site but in our test environment with or without firewall it worked well.

              Shog9 wrote:

              with the non-MS SOAP server

              Aha.. Interoperability has always been a pain with any WS technology. Incidentally, that is what WS were meant to solve. For J2EE interoperability, there is a project tango. http://java.sun.com/developer/technicalArticles/glassfish/ProjectTango/ Anyway, I will not blame WCF for interoperability issues. We need a CPHog for Safari:)

              S Offline
              S Offline
              Shog9 0
              wrote on last edited by
              #12

              Rama Krishna Vavilala wrote:

              For LAN users, I allow TCP and for users outside a firewall I allow WS*. It all worked well.

              Ok, that makes sense (assuming you obtain greater efficiency for the common scenario then at least).

              Rama Krishna Vavilala wrote:

              Interoperability has always been a pain with any WS technology. Incidentally, that is what WS were meant to solve.

              Ha! Yeah, the server's a third-party CGI deal, pretty sure all the SOAP stuff is done using some C++ library. It's buggy - there are encoding issues, and some datatypes that don't play well with the MS stuff. The frustrating part of it all is that so much of the stack appears to be implemented as internal or sealed classes, meaning i have to put hacks in at a much lower level than i'd rather deal with.

              Rama Krishna Vavilala wrote:

              Anyway, I will not blame WCF for interoperability issues.

              Eh, it didn't start with WCF. It just didn't get any better from my perspective.

              Rama Krishna Vavilala wrote:

              We need a CPHog for Safari

              You volunteering?;P

              Citizen 20.1.01

              'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

              1 Reply Last reply
              0
              • P Pete OHanlon

                Nope. I like it - I actually find it a better fit for remoting purposes, please it's relatively easy to secure. The biggest problem is a lack of decent articles on it. I started writing one on using it to communicate with Amazon S3, but packed it in when I was spending more and more time clunking round the Amazon API, rather than demonstrating "cool" ways of doing things in WCF. It may be time to revisit this, especially as Visual Studio 2008 makes creating and consuming WCF apps much easier.

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                R Offline
                R Offline
                realJSOP
                wrote on last edited by
                #13

                I find it incredulous I have to manually run external tools to make it go. Plus, I have not background at all in dealing with remoting, so references and comparisons of that technology are wasted on me. You're right, there's nothing DECENT yet written to describe WCF and how to make use of it. It also doesn't appear to be something you can wrap a class around to make it more of a black box.

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                P 1 Reply Last reply
                0
                • R Rama Krishna Vavilala

                  Yes but I don't like it as much as Safari on Mac.

                  You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK

                  D Offline
                  D Offline
                  David Stone
                  wrote on last edited by
                  #14

                  Yeah yeah. You Mac users and your need for all those standardized UI gadgets. ;) To be perfectly honest with you, there's no way that we're going to support Safari in the near-future. The way that CPhog works is that we have a very light UserScript that basically serves to inject the real script into the page directly. This enables us to get away from using a lot of the Greasemonkey-specific functions we'd have to use for things like XmlHttpRequest and the like. However, that's also enabled us to do a lot of cool stuff with globalStorage and Javascript 1.7 and the like that aren't supported in the current versions of any browser other than Firefox. It would be easy to abstract the storage stuff....seeing as how it's in a nice StorageWrapper class I wrote. We've thought about doing that to provide storage persistence for users across machines. But some of the JS, DOM, and CSS features we're using are only present in Firefox. You'd have to really convince one of us that there's a strong Safari use-case here...which would be hard because, for all of the comments about how responsive we are to user requests, we really only care about ourselves. Most of the features in CPhog are there because we get irritated with something and decide that we want to fix stuff. Basically, you're going to have to buy Shog or myself a Mac, convince us that Safari rocks, and get us to use it. Same thing goes for Opera. John Cardinal said that he'd use CPhog if we provided an Opera version of it. I looked at it and decided, in about 10 minutes, that there's no way we're going to invest that time and effort. But you're welcome to branch the code and try to get CPhog working on Safari. I'll even give you svn access if you want. ;)

                  R 1 Reply Last reply
                  0
                  • R Rama Krishna Vavilala

                    Yes but I don't like it as much as Safari on Mac.

                    You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK

                    J Offline
                    J Offline
                    Jorgen Sigvardsson
                    wrote on last edited by
                    #15

                    Have you tried Camino? (Not sure if CPHog works with it though :~)

                    -- Kein Mitleid Für Die Mehrheit

                    R 1 Reply Last reply
                    0
                    • R realJSOP

                      I find it incredulous I have to manually run external tools to make it go. Plus, I have not background at all in dealing with remoting, so references and comparisons of that technology are wasted on me. You're right, there's nothing DECENT yet written to describe WCF and how to make use of it. It also doesn't appear to be something you can wrap a class around to make it more of a black box.

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #16

                      John Simmons / outlaw programmer wrote:

                      I find it incredulous I have to manually run external tools to make it go.

                      I manage to do it all inside Visual Studio now (well, developing and testing that is). VS2008 introduced its own service hoster which is a real timesaver.

                      John Simmons / outlaw programmer wrote:

                      It also doesn't appear to be something you can wrap a class around to make it more of a black box.

                      Well, there are some bits you can "black box", but they aren't hugely useful. What is good is that it pushes you down the route of abstracting the datamodel from the actual service functionality. To that extent, it's a huge step forward.

                      Deja View - the feeling that you've seen this post before.

                      My blog | My articles

                      1 Reply Last reply
                      0
                      • R Rama Krishna Vavilala

                        Shog9 wrote:

                        Is this actually a common need?

                        For me yes. I wanted to support windows authentication and a custom authentication both together. No code changes simply expose the end points. For LAN users, I allow TCP and for users outside a firewall I allow WS*. It all worked well. Considering tons of code I wrote in the DCOM version of my application to support custom security and custom marshaling, WCF is certainly a welcome addition. The disclaimer here is that the product has not yet been deployed on actual customer site but in our test environment with or without firewall it worked well.

                        Shog9 wrote:

                        with the non-MS SOAP server

                        Aha.. Interoperability has always been a pain with any WS technology. Incidentally, that is what WS were meant to solve. For J2EE interoperability, there is a project tango. http://java.sun.com/developer/technicalArticles/glassfish/ProjectTango/ Anyway, I will not blame WCF for interoperability issues. We need a CPHog for Safari:)

                        U Offline
                        U Offline
                        User of Users Group
                        wrote on last edited by
                        #17

                        > wanted to support (snip) and a custom authentication both together > It all worked well Care to share your experiences there? For service-oriented scenarios over the public net, web, etc. that's what I am aiming at as a context of the query... I still fail to see how they address anything apart from supporting CardSpace (okay, they now have pluggable token service support so we can built anything we want but that's beside the point if everyone does it their own way ). Even when LiveID support kicks in (well I hope it doesn't), I don't see a decent way to authenticate anyone without usual, cumbersome and expensive certificate management (it gets worse if you need more than authent, but I'd be happy so see how people approach just that task). (it's all fine and great that it supports multiple auth schemes but I'm still to see one that works/heavily used out there, or more managable than certs)

                        modified on Tuesday, April 22, 2008 3:17 PM

                        R 1 Reply Last reply
                        0
                        • D David Stone

                          Yeah yeah. You Mac users and your need for all those standardized UI gadgets. ;) To be perfectly honest with you, there's no way that we're going to support Safari in the near-future. The way that CPhog works is that we have a very light UserScript that basically serves to inject the real script into the page directly. This enables us to get away from using a lot of the Greasemonkey-specific functions we'd have to use for things like XmlHttpRequest and the like. However, that's also enabled us to do a lot of cool stuff with globalStorage and Javascript 1.7 and the like that aren't supported in the current versions of any browser other than Firefox. It would be easy to abstract the storage stuff....seeing as how it's in a nice StorageWrapper class I wrote. We've thought about doing that to provide storage persistence for users across machines. But some of the JS, DOM, and CSS features we're using are only present in Firefox. You'd have to really convince one of us that there's a strong Safari use-case here...which would be hard because, for all of the comments about how responsive we are to user requests, we really only care about ourselves. Most of the features in CPhog are there because we get irritated with something and decide that we want to fix stuff. Basically, you're going to have to buy Shog or myself a Mac, convince us that Safari rocks, and get us to use it. Same thing goes for Opera. John Cardinal said that he'd use CPhog if we provided an Opera version of it. I looked at it and decided, in about 10 minutes, that there's no way we're going to invest that time and effort. But you're welcome to branch the code and try to get CPhog working on Safari. I'll even give you svn access if you want. ;)

                          R Offline
                          R Offline
                          Rama Krishna Vavilala
                          wrote on last edited by
                          #18

                          I guess FF and Safari might be very similar. Though I have not gone into the details yet.

                          David Stone wrote:

                          get CPhog working on Safari.

                          I think the biggest challenge will be to get the user scripts running. I saw a few greasemonkey clones but did not manage to get them working.

                          You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK

                          D 1 Reply Last reply
                          0
                          • J Jorgen Sigvardsson

                            Have you tried Camino? (Not sure if CPHog works with it though :~)

                            -- Kein Mitleid Für Die Mehrheit

                            R Offline
                            R Offline
                            Rama Krishna Vavilala
                            wrote on last edited by
                            #19

                            Not yet! I searched for a few GM clones but I did not try them as I wanted to build my own GM clone:)

                            1 Reply Last reply
                            0
                            • U User of Users Group

                              > wanted to support (snip) and a custom authentication both together > It all worked well Care to share your experiences there? For service-oriented scenarios over the public net, web, etc. that's what I am aiming at as a context of the query... I still fail to see how they address anything apart from supporting CardSpace (okay, they now have pluggable token service support so we can built anything we want but that's beside the point if everyone does it their own way ). Even when LiveID support kicks in (well I hope it doesn't), I don't see a decent way to authenticate anyone without usual, cumbersome and expensive certificate management (it gets worse if you need more than authent, but I'd be happy so see how people approach just that task). (it's all fine and great that it supports multiple auth schemes but I'm still to see one that works/heavily used out there, or more managable than certs)

                              modified on Tuesday, April 22, 2008 3:17 PM

                              R Offline
                              R Offline
                              Rama Krishna Vavilala
                              wrote on last edited by
                              #20

                              Yes, a certificate is needed and I will say that it was the most difficult part. But it was all related to configuration. (I did spend hours researching on how to get the UserName Password work without certificates) As soon as I added a certificate it worked like a charm. You can create two endpoints one with windows auth and one with UserName password auth (with a cert needed). It works!

                              You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK

                              1 Reply Last reply
                              0
                              • R Rama Krishna Vavilala

                                I guess FF and Safari might be very similar. Though I have not gone into the details yet.

                                David Stone wrote:

                                get CPhog working on Safari.

                                I think the biggest challenge will be to get the user scripts running. I saw a few greasemonkey clones but did not manage to get them working.

                                You have, what I would term, a very formal turn of phrase not seen in these isles since the old King passed from this world to the next. martin_hughes on VDK

                                D Offline
                                D Offline
                                David Stone
                                wrote on last edited by
                                #21

                                Rama Krishna Vavilala wrote:

                                I guess FF and Safari might be very similar. Though I have not gone into the details yet.

                                Not really in terms of their rendering engines. Firefox uses Gecko. Safari uses WebKit, which shares its roots with KHTML. They render HTML and CSS very differently.

                                Rama Krishna Vavilala wrote:

                                I saw a few greasemonkey clones but did not manage to get them working.

                                Yeah. But like I said, there's not a whole lot of Greasemonkey specific stuff we use. Mostly it's the WHATWG globalStorage working draft spec, JS 1.7 stuff, and all the "Hey, it works in Firefox, so it's okay" CSS and HTML we inject into the page. You fix those, you can have CPhog on Safari. ;)

                                1 Reply Last reply
                                0
                                • R realJSOP

                                  Is it just me, or does does WCF seem clunky, overly complicated, and clumsy?

                                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                                  -----
                                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                  M Offline
                                  M Offline
                                  MrPlankton
                                  wrote on last edited by
                                  #22

                                  Just reading up on WCF after your post. Wondering to myself if there is a way for perimeter DMZ web GUI's to talk to web services/databases inside the fire wall. Curious, since WCF seems to rely in part on MSMQ which works only intra-domain and DMZ web servers of course are not part of the inside-the-firewall domain... need to read up some more, thanks for bringing up WCF.

                                  MrPlankton

                                  P 1 Reply Last reply
                                  0
                                  • M MrPlankton

                                    Just reading up on WCF after your post. Wondering to myself if there is a way for perimeter DMZ web GUI's to talk to web services/databases inside the fire wall. Curious, since WCF seems to rely in part on MSMQ which works only intra-domain and DMZ web servers of course are not part of the inside-the-firewall domain... need to read up some more, thanks for bringing up WCF.

                                    MrPlankton

                                    P Offline
                                    P Offline
                                    Pete OHanlon
                                    wrote on last edited by
                                    #23

                                    MSMQ is only one of the bindings (a damn handy one granted). Other bindings include peer to peer, pipes, SOAP and so on. Effectively you can think of WCF as following ABC: A = Address - the address of the service you are communicating with B = Binding - the binding for the service (see above) C = Contract - the contract that the service exposes for you to communicate with

                                    Deja View - the feeling that you've seen this post before.

                                    My blog | My articles

                                    M 1 Reply Last reply
                                    0
                                    • P Pete OHanlon

                                      MSMQ is only one of the bindings (a damn handy one granted). Other bindings include peer to peer, pipes, SOAP and so on. Effectively you can think of WCF as following ABC: A = Address - the address of the service you are communicating with B = Binding - the binding for the service (see above) C = Contract - the contract that the service exposes for you to communicate with

                                      Deja View - the feeling that you've seen this post before.

                                      My blog | My articles

                                      M Offline
                                      M Offline
                                      MrPlankton
                                      wrote on last edited by
                                      #24

                                      Good to know, thanks.

                                      MrPlankton

                                      1 Reply Last reply
                                      0
                                      • P Pete OHanlon

                                        Nope. I like it - I actually find it a better fit for remoting purposes, please it's relatively easy to secure. The biggest problem is a lack of decent articles on it. I started writing one on using it to communicate with Amazon S3, but packed it in when I was spending more and more time clunking round the Amazon API, rather than demonstrating "cool" ways of doing things in WCF. It may be time to revisit this, especially as Visual Studio 2008 makes creating and consuming WCF apps much easier.

                                        Deja View - the feeling that you've seen this post before.

                                        My blog | My articles

                                        M Offline
                                        M Offline
                                        Mycroft Holmes
                                        wrote on last edited by
                                        #25

                                        Most difficult thing - deploying the bloody thing (typo in the config file :-O)

                                        Never underestimate the power of human stupidity RAH

                                        P 1 Reply Last reply
                                        0
                                        • M Mycroft Holmes

                                          Most difficult thing - deploying the bloody thing (typo in the config file :-O)

                                          Never underestimate the power of human stupidity RAH

                                          P Offline
                                          P Offline
                                          Pete OHanlon
                                          wrote on last edited by
                                          #26

                                          Ah yes. The 50 different references you have to update because you decided that Service1 is a really naff name for a service.

                                          Deja View - the feeling that you've seen this post before.

                                          My blog | My articles

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups