Sample code to add Display

I could not find any sample code to add displayin API documentation. Please if anyone can help me to add a display through API.

Display with installed Xibo player needs to make connection to the CMS and then it will create a new display record.

I require the ability to add the display through API from my custom application and not the player. RegisterDisplay method mentioned in XIBO documentation on http://xibo.org.uk/manual-tempel/en/xmds.html seems to do that. But I could not find any sample code for that.

XMDS is designed to be called from the Player - you will find examples in the Player source code. It is a SOAP webservice and sending a HTTP request with a payload like the below will do it:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:xmds" xmlns:types="urn:xmds/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <tns:RegisterDisplay>
      <serverKey xsi:type="xsd:string">{{serverKey}}</serverKey>
      <hardwareKey xsi:type="xsd:string">{{hardwareKey}}</hardwareKey>
      <displayName xsi:type="xsd:string">{{displayName}}</displayName>
      <clientType xsi:type="xsd:string">{{clientType}}</clientType>
      <clientVersion xsi:type="xsd:string">{{clientVersion}}</clientVersion>
      <clientCode xsi:type="xsd:int">{{clientVersionCode}}</clientCode>
      <macAddress xsi:type="xsd:string">{{macAddress}}</macAddress>
    </tns:RegisterDisplay>
  </soap:Body>
</soap:Envelope>

You can discover this information via the WSDL as described in the manual page you linked to.

As @peter said, the CMS API doesn’t support adding displays.