WCF Windows 8.1

Here we will provide support for developers working on integration
w0dhb
Novice Class
Posts: 21
Joined: 02 Mar 2014, 01:07

WCF Windows 8.1

Post by w0dhb » 23 Apr 2014, 18:50

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 ?

User avatar
IW3HMH
Site Admin
Posts: 2200
Joined: 21 Jan 2013, 15:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: WCF Windows 8.1

Post by IW3HMH » 23 Apr 2014, 21:48

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?
Daniele Pistollato - IW3HMH

w0dhb
Novice Class
Posts: 21
Joined: 02 Mar 2014, 01:07

Re: WCF Windows 8.1

Post by w0dhb » 23 Apr 2014, 22:31

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.

User avatar
IW3HMH
Site Admin
Posts: 2200
Joined: 21 Jan 2013, 15:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: WCF Windows 8.1

Post by IW3HMH » 24 Apr 2014, 08:39

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.
Daniele Pistollato - IW3HMH

w0dhb
Novice Class
Posts: 21
Joined: 02 Mar 2014, 01:07

Re: WCF Windows 8.1

Post by w0dhb » 24 Apr 2014, 16:01

Information on other WCF functionality would be very helpful, especially for Getting QSO information from Log.

Thanks
Dave

User avatar
IW3HMH
Site Admin
Posts: 2200
Joined: 21 Jan 2013, 15:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: WCF Windows 8.1

Post by IW3HMH » 24 Apr 2014, 17:25

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
Daniele Pistollato - IW3HMH

w0dhb
Novice Class
Posts: 21
Joined: 02 Mar 2014, 01:07

Re: WCF Windows 8.1

Post by w0dhb » 24 Apr 2014, 18:56

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 ?

User avatar
IW3HMH
Site Admin
Posts: 2200
Joined: 21 Jan 2013, 15:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: WCF Windows 8.1

Post by IW3HMH » 25 Apr 2014, 07:40

Not actually... I'm using c#
Daniele Pistollato - IW3HMH

w0dhb
Novice Class
Posts: 21
Joined: 02 Mar 2014, 01:07

Re: WCF Windows 8.1

Post by w0dhb » 25 Apr 2014, 15:47

C# samples would help also.

I speak a little bit of C# :-)

User avatar
IW3HMH
Site Admin
Posts: 2200
Joined: 21 Jan 2013, 15:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: WCF Windows 8.1

Post by IW3HMH » 28 Apr 2014, 09:43

Give me some time to make a sample :)
Daniele Pistollato - IW3HMH

Post Reply