Supported Operations

19.4.1.30 F90 File Import

F90 File Import
DESCRIPTION - Enable F90 to import an XML playlist via Web Services.
INPUT
Parameter - _user
Description: User name (must be set as described in 43.2.3).
Example: test_user
Parameter - _pwd
Description
: User password (must be set as described in 43.2.3)
Example: ********
Parameter - _coduser
Description: 
User of the station
Example: 01
Parameter - _import_type
Description
: Valid type (must be F90GENERICXMLIMPORT or F90GENERICTXTIMPORT)
Example: F90GENERICXMLIMPORT
Parameter - _reference_date
Description: 
Reference date of the import
Example: 10/10/2015
Parameter - _file_name
Description:
 File name to import
Example: 20160521_001.xml
Parameter - _file_data
Description: 
All content of the file
Example : 
OUTPUT - Return code:
0 - No error; the data passed are correct
1 - Generic error
10 - The import type is not valid
13 - The file name is empty
14 - The file data is empty


Example of the _file_data (.xml file):
<?xml version="1.0" encoding="Windows-1251" standalone="yes"?>
<data datetime="2006-02-14 10:17">
 <TPALINSE lastrevision="2007-07-17 10:17" description="Station=TV ETERE Date Exported=17/02/2006 User=2">
   <row>
   <EXTERSTRID>6563999</EXTERSTRID>  <COD_PROGRA>F_TOPGUN2</COD_PROGRA>
     <TITLE>FILM 'TOP-GUN'</TITLE>
     <DATA>30/11/2011</DATA>
     <ORA>540000</ORA>
     <TIMECODE_I>0</TIMECODE_I>
  <TIMECODE_O>90000</TIMECODE_O>
     <NEWTYPE>F</NEWTYPE>
     <COD_USER>1</COD_USER>
   </row>
   <row>
  <EXTERSTRID>6564000</EXTERSTRID>   <COD_PROGRA>C_FIAT</COD_PROGRA>
     <TITLE>FIAT 'PANDA'</TITLE>
     <DATA>30/11/2011</DATA>
     <ORA>630000</ORA>
     <TIMECODE_I>0</TIMECODE_I>
     <TIMECODE_O>750</TIMECODE_O>
     <NEWTYPE>COMM</NEWTYPE>
     <COD_USER>1</COD_USER>
   </row>
   <row>
   <EXTERSTRID>6564001</EXTERSTRID>   <COD_PROGRA>BARILLA</COD_PROGRA>
     <TITLE>PASTA BARILLA</TITLE>
     <DATA>30/11/2011</DATA>
     <ORA>630750</ORA>
     <TIMECODE_I>0</TIMECODE_I>
     <TIMECODE_O>375</TIMECODE_O>
     <NEWTYPE>COMM</NEWTYPE>
     <COD_USER>1</COD_USER>
   </row>
 </TPALINSE>
</data>