Archives de catégorie : DotNet – WCF

Modeling a WCF Service with Service factory

Installing Guidance Automation packages   download.microsoft.com search "Guidance Automation Extension"   download and install the Service factory:   download.microsoft.com search "web service software factory"   Creating solution: VS2008 – File – new – project – guidance package – template Model … Lire la suite

Publié dans DotNet - WCF | Laisser un commentaire

WCF Using service application template

add new project – template WCF Service Application   1) Creating the service interfaces & data contract:   IProductService.cs:   using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text; namespace MyWCFServices.RealNorthwindService{    // NOTE: If you change the interface name "IService1" here, you … Lire la suite

Publié dans DotNet - WCF | Laisser un commentaire

Debugging WCF

enable debugging of the WCF service:   Possibility 1 file web.confi must be changed: <system.web>    <compilation debug="true"/></system.web>   in the debug modus if you go back to Visual Studio IDE, you may find that a new solution folder script Document … Lire la suite

Publié dans DotNet - WCF | Laisser un commentaire

WCF Services Host applications

It is possible to host a service  with   a console application  file app config: <?xml version="1.0"?><configuration> <appSettings>  <add key="HTTPBaseAddress" value="http://localhost:8080/HostCmdLineApp/HelloWorldService/"/> </appSettings> <system.serviceModel>  <services>   <service name="MyWCFServices.HelloWorldService" behaviorConfiguration="MyServiceTypeBehaviors">    <endpoint address="" binding="wsHttpBinding" contract="MyWCFServices.IHelloWorldService"/>    <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex"/>   </service>  </services>  <behaviors>   <serviceBehaviors>    <behavior name="MyServiceTypeBehaviors">     <serviceMetadata httpGetEnabled="true"/>    </behavior>   </serviceBehaviors>  </behaviors> </system.serviceModel> <system.web>  <compilation debug="true"/></system.web></configuration>   console application:   namespace HostCmdLineApp { class Program { … Lire la suite

Publié dans DotNet - WCF | Laisser un commentaire

WCF Service HelloWorld

WCF Architecture           WCF provides a single programming model that can be used to creat services on the .NET platform for organization   . It is the next version of several  existing products  – ASP.NET’s web … Lire la suite

Publié dans DotNet - WCF | Laisser un commentaire