none
Wcf - Instance x URL

    Question

  • I need to know what the differences between invoking a service for instance, or by URL.

    For example when a service will consume the other. Should I call by instance or URL?         
    I need toexplainwhat is the advantage of using one.

    Is there anylink that can verify this?

    thank you


    • Edited by .NET Dev Wednesday, March 07, 2012 12:55 PM
    Wednesday, March 07, 2012 12:47 PM

Answers

  • I'm not sure I understand what you are asking.  WCF service operations are invoked in one of the following ways:

    1. by using a proxy that is generated by Visual Studio or the svcutil.exe command-line tool (see: http://msdn.microsoft.com/en-us/library/ms734712.aspx)
    2. by instantiating a ChannelFactory and using it to create a channel (see: http://msdn.microsoft.com/en-us/library/ms734681.aspx)

    Additionally you can use the WCF HTTP Web Programming Model to create WCF services that respond to non-SOAP HTTP requests (http://msdn.microsoft.com/en-us/library/bb412172.aspx)

    It sounds to me like you are asking for the advatages between invoking WCF SOAP services and invoking WCF HTTP Web services. WCF SOAP services add additional features (like security, reliable messaging, etc) but require SOAP clients (and larger message payloads). WCF HTTP Web Services can be called from any web browser or application that can make HTTP requests, but it does not provide security (unless you use HTTPS) nor does it provide reliable messaging.

    I hope this information is helpful,

    Michael Green
    WCF Documentation Team

    • Marked as answer by .NET Dev Saturday, March 10, 2012 2:24 PM
    Wednesday, March 07, 2012 7:50 PM