none
Windows communication Foundation RRS feed

Answers

All replies

  • This Forum is specific to MS Project, please post your query on a relevant forum at - http://social.technet.microsoft.com/Forums/en-US/


    Sapna Shukla

    Tuesday, May 28, 2013 7:07 AM
    Moderator
  • Hi RajanRajendren,

    Do you want to view the output when you develop the WCF? If so, please just run the WCF application in visual studio.

    If you want view the output in you own application, you should deploy the WCF application and reference the WCF service in your application. Flows are parts of code for calling the WCF service in a simple application:

    service1Client user = new service1Client ();   --"service1" of service1Client come from your WCF server

    string result=user.getdata();  --function getdata is a function of your WCF Server.

    Monday, July 15, 2013 9:46 AM
  • You can use diagnostics for creating the service/client logs.

    <system.diagnostics>
        <sources>
          <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true">
            <listeners>
              <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                <filter type=""/>
              </add>
              <add initializeData="C:\Temp\IService.svclog" type="System.Diagnostics.XmlWriterTraceListener" name="traceListener">
                <filter type=""/>
              </add>
            </listeners>
          </source>
          <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
            <listeners>
              <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                <filter type=""/>
              </add>
              <add name="ServiceModelMessageLoggingListener">
                <filter type=""/>
              </add>
            </listeners>
          </source>
        </sources>
        <sharedListeners>
          <add initializeData="C:\Temp\IService.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
            <filter type=""/>
          </add>
        </sharedListeners>
      </system.diagnostics>

    Friday, March 27, 2015 8:04 AM