Proof of Play statistics

Hi, we’ve been developing an Android app for Xibo, and now we’re stuck trying to update the statistics. Here’s the following xml we’re sending to the server:

      <type:hardwareKey xmlns:type="xsd:string">hardware_key_here</type:hardwareKey>
      <type:serverKey xmlns:type="xsd:string">server_key_here</type:serverKey>
      <type:statXml xmlns:type="xsd:string">
		    <stat type="media" fromdt="2017-07-11T15:50:00+08:00" todt="2017-07-11T15:55:00+08:00" scheduleid="277" layoutid="28" mediaid="404"/>

And here’s the response we’re getting:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="">
            <faultstring>SOAP-ERROR: Encoding: Violation of encoding rules</faultstring>

What are we doing wrong? Thanks in advance for the help!

The soap statXml should be a string encoded for XML, not raw XML.

Thanks for the help! :smiley:

1 Like