none
Background process after adding reference of wcf RRS feed

  • Question

  • Hi

    I am having some basic question in WCF. This may be silly question but i need to get more clear on this. I need to know what is the background process that takes place while adding the reference of wcf to my project. Actually WCF can be added to any of the programming platform. How other language understand this one.

    Thanks

    Wednesday, September 17, 2014 6:47 AM

Answers

  • Hi Vasanth Krishnan,

    For this situation, when we add the WCF service reference into the visual studio project (.Net client), it would automatically generate a proxy class so that we could access one or more WCF Data Services.

    After adding the reference, our project will contain additional files, which are hidden by default in Visual Studio. We can see these files in the Solution Explorer by clicking on the Show All Files menu item from the Project menu. Most of these files are XML files containing the details will enable us to invoke the WCF service, like the address, binding configuration and the definition of the data needed by the service. These XML files are useful when the consumer of the WCF service is not a .NET client. This ensures interoperability with other languages. The following figure shows the generated files. The files with the file extension XSD contains the definition of the classes used by the service, but in XML format. Common data types like string and integer are defined here. To invoke the WCF service, we have to construct the required data using XML. However, we can create code that will serialize and deserialize objects to and from XML so that we can use the language of our choice.

    For detailed information, you could refer to the link below:

    http://www.nullskull.com/a/1409/adding-wcf-service-references.aspx

    Regards

    Shawn

    Thursday, September 25, 2014 7:53 AM
    Moderator

All replies

  • WCF can be accessed by many platform like C#/C++/Java
    Thursday, September 18, 2014 12:46 PM
  • How other language understand this one.

    It's all auto-magic, and you should leave it alone. It is what it is.

    Thursday, September 18, 2014 7:12 PM
  • Hi Vasanth Krishnan,

    For this situation, when we add the WCF service reference into the visual studio project (.Net client), it would automatically generate a proxy class so that we could access one or more WCF Data Services.

    After adding the reference, our project will contain additional files, which are hidden by default in Visual Studio. We can see these files in the Solution Explorer by clicking on the Show All Files menu item from the Project menu. Most of these files are XML files containing the details will enable us to invoke the WCF service, like the address, binding configuration and the definition of the data needed by the service. These XML files are useful when the consumer of the WCF service is not a .NET client. This ensures interoperability with other languages. The following figure shows the generated files. The files with the file extension XSD contains the definition of the classes used by the service, but in XML format. Common data types like string and integer are defined here. To invoke the WCF service, we have to construct the required data using XML. However, we can create code that will serialize and deserialize objects to and from XML so that we can use the language of our choice.

    For detailed information, you could refer to the link below:

    http://www.nullskull.com/a/1409/adding-wcf-service-references.aspx

    Regards

    Shawn

    Thursday, September 25, 2014 7:53 AM
    Moderator