Results 1 to 4 of 4

Thread: Basic WCF/Web Service Question

  1. #1

    Thread Starter
    Hyperactive Member maikeru-sama's Avatar
    Join Date
    May 2008
    Posts
    339

    Basic WCF/Web Service Question

    1) Is WCF a replacement for Web Services? I was just reading it seems to indicate that WCF is now kind of a 'universal' umbrella for communication between two or more systems.

    2) Say I create a Interface/Class and have a Method that returns an int value. When a program written in say, Java or C++ consumes the Web Service or WCF method, how do these different languages know how to handle a 'C#' int? I am going to assume that is handled at the OS level?

    Instead of just learning this technology by looking at samples on the Internet and books, I want to have a solid understanding of theories behind them.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Basic WCF/Web Service Question

    1) I believe so yes. I've never used Web Services but I have used WCF and seen references to web services and from what I can tell WCF is basically the new 'version' of web services. I would not say that WCF is a universal umrella for any kind of communication between two programs though, as WCF is a specific way of communicating between two programs (though it can use several different transports such as HTTP, TCP/IP, Named Pipes, etc)

    2) I'm not sure on that one I'm afraid
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3

    Thread Starter
    Hyperactive Member maikeru-sama's Avatar
    Join Date
    May 2008
    Posts
    339

    Re: Basic WCF/Web Service Question

    Chris, let me clarify. When I say 'an umbrella', I meant that the book stated that for ".Net Remoting", "MSMQ" etc etc, you would have to use different technologies and they said WCF allows you to do all of this with 1 tool.

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Basic WCF/Web Service Question

    Ah right well then yeah you are correct in that case. Basically the idea with WCF is that you worry about the actual implementation of your methods, and WCF takes care of actually sending/receiving the data to/from the other program - if you want it to send the data via HTTP/HTTPS instead of TCP/IP then its just a case of changing a value in a config file
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width