Page 1 of 2

WCF Windows 8.1

Posted: 23 Apr 2014, 17:50
by w0dhb
When running Log4OM on Windows 8.1, I can not get the WCF service to start.
I have turned on WCF in the "Turn Windows Features On and Off" settings.

Any suggestions ?

Re: WCF Windows 8.1

Posted: 23 Apr 2014, 20:48
by IW3HMH
WCF is now used only for external program communications (hrdlabel, as example) and not for communicator anymore (TCP only)

Usually the error will be fixed running Log4OM as ADMINISTRATOR (right click > run as administrator)

Can you try that solution?

Re: WCF Windows 8.1

Posted: 23 Apr 2014, 21:31
by w0dhb
Yes, that fixed the problem, Thank you.
Windows 7 does not require Log4OM to run as administrator.

I'm using WCF to enter QSO's with a special satellite logging program I have written.
I also access the log database directly (read only) using MySQL calls.

Re: WCF Windows 8.1

Posted: 24 Apr 2014, 07:39
by IW3HMH
There are some useful methods in WCF that you can use. I can provide you informations about them if you need.
They will answer with QSO objects and LOG as List<QSO>, that can be useful to use as data structure without need to rewrite all.

Re: WCF Windows 8.1

Posted: 24 Apr 2014, 15:01
by w0dhb
Information on other WCF functionality would be very helpful, especially for Getting QSO information from Log.

Thanks
Dave

Re: WCF Windows 8.1

Posted: 24 Apr 2014, 16:25
by IW3HMH
This is the interface published by WCF:

Code: Select all

    public interface IWCFService
    {
        [OperationContract]
        bool ConnectionTest();
        [OperationContract]
        Log GetQslList(string qslSent, string qslSentVia, int start, int count);
        [OperationContract]
        string GetQslAdif(string qslSent, string qslSentVia, int start, int count);
        [OperationContract]
        bool UpdateQSO(string adif);
        [OperationContract]
        bool EditQSO(long qsoId);
        [OperationContract]
        bool AddQSO(string adif);
    }
ConnectionTest can be called and will return true. This confirm that the connection works.

GetQslList will return a Log class (you can retrieve the class using the wcf reference) that is basically a List<QSO> where QSO is the main object that stores all data for a single QSO
Log has some functions embedded in the class itself that you can use.
You can ask for chunks of log by qslSent status and qslSentVia status (optional) where values are the standard ADIF 2.0.x values of QslSent and QslSentVia fields
chunks can be retrieved by setting a start and a count, where start can be used as "first QSO to be retrieved" and count as the number of QSO on every chunk.

GetQslAdif does the same, but returns an ADIF instead of a class
Update, edit and add are self explanatory. Edit will open user interface with EDIT screen on Log4OM, update... updates the QSO and ADD... adds :)

hope this is enough to start...
if not i'm there

Re: WCF Windows 8.1

Posted: 24 Apr 2014, 17:56
by w0dhb
I am currently using WCF ADDQso to enter QSO's

I'll check some of the other functions

Do you have any VB sample code using other functions ?

Re: WCF Windows 8.1

Posted: 25 Apr 2014, 06:40
by IW3HMH
Not actually... I'm using c#

Re: WCF Windows 8.1

Posted: 25 Apr 2014, 14:47
by w0dhb
C# samples would help also.

I speak a little bit of C# :-)

Re: WCF Windows 8.1

Posted: 28 Apr 2014, 08:43
by IW3HMH
Give me some time to make a sample :)