Project Hornet

Revision as of 09:18, 17 November 2010 by SMIL T.A. (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Hornet 1.1 ("A-SMIL Console") is a Visual C# sample applications that utilizes the AdAPI SOAP interface to control digital signage media players.


  • Simple SMIL text editor
  • Push SMIL script to media players using SOAP API (Adfotain API)
  • Start from nearly a dozen of pre-built SMIL sample codes


Screenshot-Hornet 1.0.png



Via pre-built Windows installer, or

download complete source code here:


  • Hornet\
    • Hornet.sln (Open this: Visual Studio solution file)
    • Hornet\
      • AdfotainAPI WSDL Definition\ (WSDL definition file)
      • Properties\
      • samples\ (SMIL sample code)
      • app.config
      • Form1.cs (Main UI code)
      • Form1.Designer.cs
      • Form1.resx
      • Hornet.csproj (C# project file)
      • Hornet.csproj.user
      • Program.cs (Housekeeping code)


Known Issues

In the auto-generated adapi_1_0.cs proxy stub, add:

[System.Web.Services.WebServiceBindingAttribute(Name = "IASoapHttpClientProtocol", Namespace = "")]
public class IASoapHttpClientProtocol : SoapHttpClientProtocol
    protected override System.Net.WebRequest GetWebRequest(Uri uri)
        System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri);
        webRequest.KeepAlive = false;
        webRequest.ProtocolVersion = System.Net.HttpVersion.Version10;
        return webRequest;
    public bool IsCustomSoapHttpClientProtocol() { return true; }

Then make MediaControl and ContentManager classes inherit from IASoapHttpClientProtocol instead of the default SoapHttpClientProtocol.