央视国际节目定价发布接口规范C2
央視國(guó)際
節(jié)目定價(jià)發(fā)布接口規(guī)范
?
V2.7.2
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
央視國(guó)際IP電視事業(yè)部
2011年3月
Revision History
?
Revision # | Author | Reviewed By | A. Description Of Change B. Summary of Review | Issued by / Date |
1.0 | ? | ? | 第1版 | 2008-05-05 |
2.0 | ? | ? | 第2版 Program和Series增加屬性:Kpeople,Director,ScriptWriter,Compere,Guest,Reporter 刪除Cast和CastRoleMap對(duì)象 Mapping的Sequence屬性擴(kuò)長(zhǎng)到4位 | 2010-05-09 |
? | ? | ? | 3.1節(jié)增加了一些規(guī)則描述 XML修訂 | 2010-5-21 |
? | ? | ? | Mapping關(guān)系增加update操作 | 2010-8-9 |
? | ? | ? | 修訂Program和Series的OrgAirDate, Description的長(zhǎng)度 | 2010-8-11 |
? | ? | ? | 修訂Category的ParentID,由ATT改為PN | 2010-8-23 |
? | ? | ? | 3.5 Movie定義 FileURL最大長(zhǎng)度改為1024 3.7 PhysicalChannel定義 ChannelID改為可選 | 2010-9-30 |
2.5 | ? | ? | 3.4 擴(kuò)展Program的SourceType,增加圖文節(jié)目 3.6 增加HTMLContent 3.9 Schedule增加StorageDuration 3.14 增加Program與HTMLContent的Mapping | 2010-10-13 |
2.6 | ? | ? | 3.4 修改SortName為時(shí)間排序索引,LicensingWindowStart和LicensingWindowEnd為必填字段 3.8 組播地址和端口號(hào)為必填字段 對(duì)于2.5版本增加的對(duì)象,根據(jù)業(yè)務(wù)需要開發(fā)實(shí)現(xiàn) ? | 2010-12-06 |
2.7 | ? | ? | 3.4 SortName不限定格式 3.12 Series增加SeriesType屬性 3.14 增加Series和Movie的Mapping,Series刪除時(shí),關(guān)聯(lián)Movie應(yīng)自動(dòng)刪除。 | 2011-1-28 |
2.7.2 | ? | ? | 3.9 Schedule增加Genre屬性 | 2011-3-14 |
?
目錄
?
?
1. 介紹 2
2. 內(nèi)容下發(fā)機(jī)制 2
2.1 流程描述 2
2.2 SOAP消息定義 2
3. XML文件規(guī)范 2
3.1 概述 2
3.2 ADI定義 2
3.3 Objects定義 2
3.4 Program定義 2
3.5 Movie定義 2
3.6 HTMLContent定義 2
3.7 Channel定義 2
3.8 PhysicalChannel定義 2
3.9 Schedule定義 2
3.10 Picture定義 2
3.11 Category定義 2
3.12 Series定義 2
3.13 Package定義 2
3.14 Mappings定義 2
3.15 Reply定義 2
3.16 XML例子 2
4. 附錄 2
4.1 視音頻參數(shù)定義 2
4.2 XML Schema 2
4.3 WSDL 2
?
1.?
介紹
本文為央視國(guó)際與電信運(yùn)營(yíng)商(網(wǎng)通/廠商IPTV系統(tǒng))之間的IPTV內(nèi)容及業(yè)務(wù)定價(jià)發(fā)布接口規(guī)范。本規(guī)范用于內(nèi)容運(yùn)營(yíng)商(以下用縮寫CSP-content service provider代替)向電信運(yùn)營(yíng)商(以下用縮寫LSP-Local sevice provider代替)下發(fā)內(nèi)容的節(jié)目包定價(jià)、業(yè)務(wù)套餐定義、業(yè)務(wù)套餐定價(jià)、元數(shù)據(jù)、和媒體文件。
?
2.?內(nèi)容下發(fā)機(jī)制
2.1?流程描述
內(nèi)容分發(fā)接口采用SOAP協(xié)議+XML指令文檔的方式。其中,SOAP消息是與具體指令內(nèi)容無關(guān)的通用消息,僅僅用于表達(dá)命令請(qǐng)求。而具體的命令及參數(shù)利用獨(dú)立的XML文檔來描述。采用與具體指令無關(guān)的通用SOAP消息有利于指令擴(kuò)展及在異步環(huán)境中實(shí)現(xiàn)通用的可靠消息傳遞機(jī)制。
?
CSP以SOAP協(xié)議 + XML指令文檔的方式主動(dòng)向LSP發(fā)布內(nèi)容,LSP根據(jù)SOAP消息中的文件URL獲取XML并解析執(zhí)行。
?
?
2.2?SOAP消息定義
執(zhí)行指令請(qǐng)求:ExecCmdReq
消息方向:CSPàLSP
名稱 | 說明 | 數(shù)據(jù)類型 | 是否必選 |
CSPID | 互相約定的上層標(biāo)識(shí) | String(32) | M |
LSPID | 互相約定的下層標(biāo)識(shí) | String(32) | M |
CorrelateID | 相關(guān)性標(biāo)識(shí),用于關(guān)聯(lián)指令執(zhí)行請(qǐng)求消息和結(jié)果通知消息。對(duì)于重發(fā)的指令,該字段值保持一致,對(duì)于不同的指令,該字段在同層內(nèi)具有唯一性。 | String(32) | M |
CmdFileURL | XML指令文件的URL | URL | M |
?
執(zhí)行指令響應(yīng):ExecCmdRes
消息方向:CSP?LSP
名稱 | 說明 | 數(shù)據(jù)類型 | 是否必選 |
Result | 接收消息結(jié)果: 0:成功 -1:失敗 | Int | M |
ErrorDescription | 錯(cuò)誤信息詳細(xì)描述 | String | O |
?
結(jié)果通知請(qǐng)求:ResultNotifyReq
消息方向:CSP?LSP
名稱 | 說明 | 數(shù)據(jù)類型 | 是否必選 |
CSPID | 互相約定的上層標(biāo)識(shí) | String(32) | M |
LSPID | 互相約定的下層標(biāo)識(shí) | String(32) | M |
CorrelateID | 相關(guān)性標(biāo)識(shí),用于關(guān)聯(lián)指令執(zhí)行請(qǐng)求消息和結(jié)果通知消息。 | String(32) | M |
CmdResult | 命令執(zhí)行結(jié)果: 0:成功 -1:通常失敗 其他結(jié)果待定義 | Int | M |
ResultFileURL | 查詢結(jié)果XML文件的URL,該字段僅針對(duì)查詢結(jié)果通知消息出現(xiàn)。 | URL | O |
?
結(jié)果通知響應(yīng):ResultNotifyRes
消息方向:CSPàLSP
名稱 | 說明 | 數(shù)據(jù)類型 | 是否必選 |
Result | 接收消息結(jié)果: 0:成功 -1:失敗 | Int | M |
ErrorDescription | 錯(cuò)誤信息詳細(xì)描述 | String | O |
?
3.?XML文件規(guī)范
3.1?概述
XML文件的結(jié)構(gòu)如下圖所示:
?
以下是一個(gè)XML定義的通用格式例子:
<?xml version="1.0" encoding="UTF-8"?>
<ADI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Objects>
<Object ElementType="object_type" ID="object_id" Action="REGIST">
<Property Name="property_name1">property_value1</Property>
<Property Name="property_name2">property_value2</Property>
<Property Name="property_name3">property_value3</Property>
</Object>
</Objects>
<Mappings>
<Mapping?ID=”mapping_id”?ParentType="parent_type" ParentID="parent_id" ElementType=”element_type”?ElementID=”element_id”?Action="REGIST">
<Property name="property_name1">property_value1</Property>
<Property name="property_name2">property_value2</Property>
</Mapping>
</Mappings>
</ADI>
?
ADI/Objects/Mappings是接口XML的通用基礎(chǔ)框架,基于該通用框架定義不同的Object.ElementType和不同的Property.Name來滿足對(duì)不同對(duì)象的定義需求。請(qǐng)注意本規(guī)范的描述中應(yīng)用以下規(guī)則:
1)?Object.ElementType與Object.ID聯(lián)合起來在接口中唯一定位一個(gè)對(duì)象實(shí)例,它們是一個(gè)接口中針對(duì)對(duì)象進(jìn)行任何操作的唯一索引。當(dāng)對(duì)象之間有父子關(guān)系或多對(duì)多關(guān)系的時(shí)候,Object.ID也被用做關(guān)聯(lián)引用標(biāo)識(shí)。
2)?部分對(duì)象的Property屬性中定義了Code屬性,表示跨系統(tǒng)的全局唯一標(biāo)識(shí),LSP應(yīng)保留備用。
3)?對(duì)于任何符合Schema(見附件)的XML文件,LSP應(yīng)該忽略那些不能識(shí)別的Property或XML Tag或?qū)傩浴?/span>
4)?以下對(duì)象中標(biāo)識(shí)為”必填項(xiàng)”的屬性,僅僅是針對(duì)REGIST操作。而UPDATE操作進(jìn)行的是增量修改,缺少某必填項(xiàng),僅為表示不需要對(duì)此項(xiàng)進(jìn)行修改,而不能修改此項(xiàng)為空。DELETE操作只出現(xiàn)ElementType、ID、Code屬性,其他屬性不需要。
5)?接收方若收到某對(duì)象的REGIST操作,若系統(tǒng)中該對(duì)象已經(jīng)存在,則應(yīng)當(dāng)作UPDATE操作處理。該需求包括Mapping對(duì)象。
6)?接收方若收到Program、Movie、Series、Category、Package、Channel、Schedule對(duì)象的DELETE操作,應(yīng)自動(dòng)刪除該對(duì)象關(guān)聯(lián)的Picture、Movie、及該對(duì)象與其他對(duì)象的Mapping關(guān)系。
7)?XML文件內(nèi)容的編碼全部采用UTF-8格式。
8)?當(dāng)Program包含在Series下時(shí),LicensingWindowStart和LicensingWindowEnd兩個(gè)字段以Series的定義為準(zhǔn),Program的兩個(gè)字段為非必填。
?
以下章節(jié)描述了XML的詳細(xì)定義。在其中att表示XML屬性, el表示XML元素, pn表示Property節(jié)點(diǎn)的Name)。
?
3.2?ADI定義
ADI是XML的根元素。
No | Tag名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | ADI | ? | 根元素 | ? | ? | ? | |
2 | ? | Objects | el | 操作對(duì)象 | ? | ? | ? |
3 | Mappings | el | 映射對(duì)象 | ? | ? | ? | |
4 | Reply | el | 應(yīng)答對(duì)象 | ? | ? | 應(yīng)答文件包含 | |
?
3.3?Objects定義
Objects是操作對(duì)象。操作類型REGIST表示增加新對(duì)象,UPDATE表示修改對(duì)象內(nèi)容,DELETE表示刪除對(duì)象。
Objects.ElementType定義:
序號(hào) | ElementType取值 | 說明 |
基本內(nèi)容管理 | ||
1 | Program | 節(jié)目信息 |
2 | Movie | 媒體內(nèi)容信息 |
3 | HTMLContent | 圖文內(nèi)容信息 |
4 | Channel | TV頻道信息 |
5 | PhysicalChannel | 頻道物理參數(shù)信息 |
6 | Schedule | TV時(shí)刻表信息 |
7 | Picture | 圖片信息 |
8 | Category | 編排目錄信息 |
9 | Series | 連續(xù)劇 |
業(yè)務(wù)套餐管理 | ||
9 | Package | 包信息 |
?
3.4?Program定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Program | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Program” | Y | ? | ? |
3 | ID | att | 接口中的唯一標(biāo)識(shí) | Y | 32 | ? | |
4 | Action | att | 操作類型 注冊(cè)-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | Name | pn | 節(jié)目名稱 | Y | 128 | ? | |
7 | OrderNumber | pn | 節(jié)目訂購(gòu)編號(hào) | ? | 10 | ? | |
8 | OriginalName | pn | 原名 | ? | 128 | ? | |
9 | SortName | pn | 索引發(fā)布時(shí)間供界面排序 | ? | 128 | ? | |
10 | SearchName | pn | 搜索名稱供界面搜索 | ? | 128 | ? | |
11 | ActorDisplay | pn | 演員列表(只供顯示) | ? | 256 | ? | |
12 | WriterDisplay | pn | 作者列表(只供顯示) | ? | 256 | ? | |
13 | OriginalCountry | pn | 國(guó)家地區(qū) | ? | 64 | ? | |
14 | Language | pn | 語(yǔ)言 | ? | 64 | ? | |
15 | ReleaseYear | pn | 上映年份 | ? | 4 | ? | |
16 | OrgAirDate | pn | 首播時(shí)間 | ? | 20 | ? | |
17 | LicensingWindowStart | pn | 有效開始時(shí)間 (YYYYMMDDHH24MiSS) | Y | 14 | ? | |
18 | LicensingWindowEnd | pn | 有效結(jié)束時(shí)間 (YYYYMMDDHH24MiSS) | Y | 14 | ? | |
19 | DisplayAsNew | pn | 新到天數(shù) | ? | 3 | ? | |
20 | DisplayAsLastChance | pn | 剩余天數(shù) | ? | 3 | ? | |
21 | Macrovision | pn | 拷貝保護(hù)標(biāo)志 0:無拷貝保護(hù) 1:有拷貝保護(hù) | ? | 1 | ? | |
22 | Description | pn | 節(jié)目描述 | ? | 4000 | ? | |
23 | PriceTaxIn | pn | 列表定價(jià) | ? | 12,2 | ? | |
24 | Status | pn | 狀態(tài)標(biāo)志 0:失效 1:生效 | ? | 1 | ? | |
25 | SourceType | pn | 1: 視頻類節(jié)目 2: 圖文類節(jié)目 | ? | 1 | ? | |
26 | SeriesFlag | pn | 0:?影片 1:?單集 | ? | 1 | ? | |
27 | Kpeople | pn | 主要人物 | ? | 150 | ? | |
28 | Director | pn | 導(dǎo)演 | ? | 50 | ? | |
29 | ScriptWriter | pn | 編劇 | ? | 50 | ? | |
30 | Compere | pn | 節(jié)目主持人 | ? | 50 | ? | |
31 | Guest | pn | 受訪者 | ? | 50 | ? | |
32 | Reporter | pn | 記者 | ? | 50 | ? | |
33 | OPIncharge | pn | 其他責(zé)任人 | ? | 50 | ? | |
34 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
35 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
36 | ? | Type | pn | 資產(chǎn)類型 | ? | ? | ? |
?
3.5?Movie定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Movie | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Movie” | Y | ? | ? |
3 | ID | att | 接口中的唯一標(biāo)識(shí) | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | Type | pn | 媒體類型1:正片 2:預(yù)覽片 | Y | 1 | ? | |
7 | FileURL | pn | 媒體文件URL ftp://username:password@ip:port/... ?標(biāo)準(zhǔn)FTP協(xié)議 | Y | 1024 | ? | |
8 | SourceDRMType | pn | 0: No DRM 1: BES DRM | ? | 1 | ? | |
9 | DestDRMType | pn | 0: No DRM 1: BES DRM | ? | 1 | ? | |
10 | AudioType | pn | 0: 其他 1: Monaural?單聲道 2: Stereo?多聲道 3: Two-nation monaural?雙單聲道 4: Two-nation stereo?雙多聲道 5: AC3(5:1 channel)?AC3聲道 | ? | 2 | ? | |
11 | ScreenFormat | pn | 0:?4x3 1:?16x9(Wide) | ? | 1 | ? | |
12 | ClosedCaptioning | pn | 字幕標(biāo)志 0:無字幕 1:有字幕 | ? | 1 | ? | |
13 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
14 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
15 | ? | BitRateType | pn | 碼流 | ? | ? | ? |
?
3.6?HTMLContent定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | HTMLContent | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “HTMLContent” | Y | ? | ? |
3 | ID | att | 接口中的唯一標(biāo)識(shí) | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | FileURL | pn | 圖文節(jié)目的HTML TAR包文件URL ftp://username:password@ip:port/... ?標(biāo)準(zhǔn)FTP協(xié)議 | Y | 1024 | 下平臺(tái)從此URL獲取圖文節(jié)目包 | |
7 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
8 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.7?Channel定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Channel | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Channel” | Y | ? | ? |
3 | ID | att | 接口中的唯一標(biāo)識(shí) | Y | ? | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | ChannelNumber | pn | 建議頻道號(hào) | ? | 3 | ? | |
7 | Name | pn | 頻道名稱 | Y | 64 | ? | |
8 | CallSign | pn | 臺(tái)標(biāo)名稱 | ? | 10 | ? | |
9 | TimeShift | pn | 時(shí)移標(biāo)志 0:不生效 1:生效 | ? | 1 | ? | |
10 | StorageDuration | pn | 存儲(chǔ)時(shí)長(zhǎng),單位小時(shí) | ? | 9 | 該頻道的錄制節(jié)目保存時(shí)長(zhǎng),可用于時(shí)移和回看。 | |
11 | TimeShiftDuration | ? | 默認(rèn)時(shí)移時(shí)長(zhǎng), 單位分鐘 (Reserved) | ? | ? | 僅僅對(duì)Timeshift有效 | |
12 | Description | pn | 描述信息 | ? | 1024 | ? | |
13 | Country | pn | 國(guó)家 | ? | 10 | ? | |
13 | State | pn | 州/省 | ? | 10 | ? | |
14 | City | pn | 城市 | ? | 10 | ? | |
15 | ZipCode | pn | 郵編 | ? | 10 | ? | |
16 | Type | pn | 頻道類型 1:直播頻道 | Y | 1 | ? | |
17 | SubType | pn | 當(dāng)Type為1(直播頻道) 1: 信號(hào)源來自live 2: 信號(hào)源來自virtual | ? | 1 | ? | |
19 | Language | pn | 語(yǔ)言 | ? | 128 | ? | |
19 | Status | pn | 狀態(tài)標(biāo)志 0:失效 1:生效 | Y | 1 | ? | |
20 | StartTime | pn | 播放開始時(shí)間(HH24MI) | ? | 4 | ? | |
21 | EndTime | pn | 播放結(jié)束時(shí)間(HH24MI) | ? | 4 | ? | |
22 | Macrovision | pn | 拷貝保護(hù)標(biāo)志 0:無拷貝保護(hù) 1:有拷貝保護(hù) | ? | 1 | ? | |
23 | VideoType | pn | 視頻參數(shù)(參考4.1) | ? | 10 | ? | |
24 | AudioType | pn | 音頻參數(shù)(參考4.1) | ? | 10 | ? | |
25 | StreamType | pn | 碼流標(biāo)志(參考4.1) | ? | 1 | ? | |
26 | Bilingual | pn | 雙語(yǔ)標(biāo)志(0/1) | ? | 1 | ? | |
27 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
28 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.8?PhysicalChannel定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | PhysicalChannel | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “PhysicalChannel” | Y | ? | ? |
3 | ID | att | 唯一ID | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | ChannelCode | pn | 頻道Code | Y | 32 | ? | |
7 | ChannelID | pn | 頻道ID | N | 32 | ? | |
8 | BitRateType | pn | 碼流 2: 2M 4: 4M | ? | 1 | ? | |
9 | MultiCastIP | pn | 組播IP | Y | 64 | ? | |
10 | MultiCastPort | pn | 組播端口 | Y | 5 | ? | |
11 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
12 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.9?Schedule定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Schedule | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Schedule” | Y | ? | ? |
3 | ID | att | 接口中的唯一標(biāo)識(shí) | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | ChannelCode | pn | 邏輯頻道Code | Y | 32 | ? | |
7 | ChannelID | pn | 邏輯頻道ID | ? | 32 | ? | |
8 | ProgramName | pn | 節(jié)目名稱 | ? | 128 | ? | |
9 | StartDate | pn | 節(jié)目開播日期(YYYYMMDD) | Y | 8 | ? | |
10 | StartTime | pn | 節(jié)目開播時(shí)間(HH24MISS) | Y | 6 | ? | |
11 | Duration | pn | 節(jié)目時(shí)長(zhǎng)(HH24MISS) | Y | 6 | ? | |
12 | StorageDuration | pn | TVOD保存時(shí)長(zhǎng)(小時(shí)) 缺省為空 | ? | ? | 該時(shí)間段的TVOD保存時(shí)長(zhǎng),如果該字段為空或小于Channel.StorageDuration,則應(yīng)以Channel.StorageDuration為準(zhǔn)。 | |
13 | Status | pn | 狀態(tài)標(biāo)志 0:失效 1:生效 | Y | 1 | ? | |
14 | Description | pn | 描述信息 | ? | 1024 | ? | |
15 | Genre | pn | 節(jié)目的分類標(biāo)簽,如“體育”,多個(gè)標(biāo)簽用空格或“;”區(qū)分 | ? | 128 | ? | |
16 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
17 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
說明:對(duì)于REGIST/UPDATE操作的Schedule,如果和原有Schedule有時(shí)間重疊,接受方應(yīng)自動(dòng)刪除原有的Schedule以自動(dòng)覆蓋。
?
3.10?Picture定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Picture | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Picture” | Y | ? | ? |
3 | ID | att | 接口中的唯一標(biāo)識(shí) | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
5 | FileURL | pn | 圖片文件URL | ? | 1024 | ? | |
6 | Description | pn | 描述 | ? | 1024 | ? | |
7 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
8 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.11?Category定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Category | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Category” | Y | ? | ? |
3 | ID | att | 唯一ID | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | ParentCode | att | 父節(jié)點(diǎn)Code(全局唯一標(biāo)識(shí)) 若是根節(jié)點(diǎn),ParentCode為0或?yàn)榭?/span> | Y | 32 | ? | |
7 | ParentID | pn | 父節(jié)點(diǎn)ID | ? | 32 | ? | |
8 | Name | pn | 分類名稱 | Y | 64 | ? | |
9 | Sequence | pn | 顯示順序號(hào) | ? | 3 | ? | |
10 | Status | pn | 狀態(tài)標(biāo)志 0:失效 1:生效 | Y | 1 | ? | |
11 | Description | pn | 描述信息 | ? | 1024 | ? | |
12 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
13 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.12?Series定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Series | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Series” | Y | ? | ? |
3 | ID | att | 唯一ID | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | Name | pn | 連續(xù)劇名稱 | Y | 128 | ? | |
7 | OrderNumber | pn | 訂購(gòu)編號(hào) | ? | 10 | ? | |
8 | OriginalName | pn | 原名 | ? | 128 | ? | |
9 | SortName | pn | 排序名稱 | ? | 128 | ? | |
10 | SearchName | pn | 索引名稱 | ? | 160 | ? | |
11 | OrgAirDate | pn | 首播日期 | ? | 20 | ? | |
12 | LicensingWindowStart | pn | 有效定購(gòu)開始時(shí)間 (YYYYMMDDHH24MiSS) | ? | 14 | ? | |
13 | LicensingWindowEnd | pn | 有效定購(gòu)結(jié)束時(shí)間 (YYYYMMDDHH24MiSS) | ? | 14 | ? | |
14 | DisplayAsNew | pn | 新到天數(shù) | ? | 3 | ? | |
15 | DisplayAsLastChance | pn | 剩余天數(shù) | ? | 3 | ? | |
16 | Macrovision | pn | 拷貝保護(hù)標(biāo)志(0/1) | ? | 1 | ? | |
17 | Price | pn | 含稅定價(jià) | ? | ? | ? | |
18 | VolumnCount | pn | 總集數(shù) | ? | ? | ? | |
19 | Status | pn | 狀態(tài)標(biāo)志 0:失效 1:生效 | ? | 1 | ? | |
20 | Description | pn | 描述信息 | ? | 4000 | ? | |
21 | Kpeople | pn | 主要人物 | ? | 150 | ? | |
22 | Director | pn | 導(dǎo)演 | ? | 50 | ? | |
23 | ScriptWriter | pn | 編劇 | ? | 50 | ? | |
24 | Compere | pn | 節(jié)目主持人 | ? | 50 | ? | |
25 | Guest | pn | 受訪者 | ? | 50 | ? | |
26 | Reporter | pn | 記者 | ? | 50 | ? | |
27 | OPIncharge | pn | 其他責(zé)任人 | ? | 50 | ? | |
28 | SeriesType | pn | 1:連續(xù)劇,2:系列片 | ? | 1 | 缺省為連續(xù)劇 | |
29 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
30 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.13?Package定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | |
1 | Package | ? | ? | ? | ? | ? | |
2 | ? | ElementType | att | “Package” | Y | ? | ? |
3 | ID | att | 唯一ID | Y | 32 | ? | |
4 | Action | att | 操作類型 發(fā)布-REGIST 更新-UPDATE 刪除-DELETE | Y | ? | ? | |
5 | Code | att | 全局唯一標(biāo)識(shí) | Y | 32 | ? | |
6 | Name | pn | Package名稱 | Y | 64 | ? | |
7 | Type | pn | Package類型 0: VOD包 2: Channel包 4: SVOD 99: Mix(待定義) | ? | 1 | ? | |
8 | SortName | pn | 索引名稱供界面排序 | ? | 80 | ? | |
9 | SearchName | pn | 搜索名稱供界面搜索 | ? | 80 | ? | |
10 | RentalPeriod | pn | 租用有效期(小時(shí)) | ? | 9 | ? | |
11 | OrderNumber | pn | 定購(gòu)編號(hào) | ? | 32 | ? | |
12 | LicensingWindowStart | pn | 有效定購(gòu)開始時(shí)間 (YYYYMMDDHH24MiSS) | ? | 14 | ? | |
13 | LicensingWindowEnd | pn | 有效定購(gòu)結(jié)束時(shí)間 (YYYYMMDDHH24MiSS) | ? | 14 | ? | |
14 | Price | pn | 定價(jià) | ? | 12,2 | ? | |
15 | Status | pn | 狀態(tài)標(biāo)志 0:失效 1:生效 | Y | 1 | ? | |
16 | Description | pn | 描述信息 | ? | 1024 | ? | |
17 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | |
18 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | |
?
3.14?Mappings定義
No | Property名/屬性 | ? | 描述 | 必填(Y/N) | 長(zhǎng)度 | 注釋 | ||
1 | Mappings | ? | ? | ? | ? | ? | ||
2 | ? | Mapping | ? | ? | ? | ? | ? | |
3 | ? | ID | att | 唯一ID | ? | ? | 此ID為可選 | |
4 | Action | att | 操作類型 (REGIST/DELETE/UPDATE) | Y | ? | UPDATE操作用于更新關(guān)聯(lián)關(guān)系的屬性,如type, sequence等 | ||
5 | ParentType | att | 父元素類型(支持的類型請(qǐng)參考下表) | Y | ? | ? | ||
6 | ElementType | att | 元素類型(支持的類型請(qǐng)參考下表) | Y | ? | ? | ||
7 | ParentID | att | 父元素ID | Y | 32 | 根據(jù)ParentType的不同,填被關(guān)聯(lián)的Parent對(duì)象的ID | ||
8 | ElementID | att | 元素ID | Y | 32 | 根據(jù)ElementType的不同, 填被關(guān)聯(lián)的Element對(duì)象的ID | ||
9 | ParentCode | att | 父元素Code(全局唯一) | Y | 32 | ? | ||
10 | ElementCode | att | 元素Code(全局唯一) | Y | 32 | ? | ||
11 | Type | pn | 映射時(shí)的類型 當(dāng)Mapping的ParentType為Picture時(shí): 0: 縮略圖 1: 海報(bào) 2: 劇照 3: 圖標(biāo) 4: 標(biāo)題圖 5: 廣告圖 6: 草圖 7: 背景圖 9: 頻道圖片 10: 頻道黑白圖片 11: 頻道Logo 12: 頻道名字圖片 99: 其他 | ? | 2 | ? | ||
12 | ValidStart | pn | 當(dāng)Mapping的ParentType為Package(SVOD)時(shí), 標(biāo)識(shí)SVOD節(jié)目的服務(wù)起始時(shí)間 ?(YYYYMMDDHH24MiSS) | ? | 14 | ? | ||
13 | ValidEnd | pn | 當(dāng)Mapping的ParentType為Package(SVOD)時(shí), 標(biāo)識(shí)SVOD節(jié)目的服務(wù)終止時(shí)間 (YYYYMMDDHH24MiSS) | ? | 14 | ? | ||
14 | Sequence | pn | 序列號(hào) | ? | 4 | ? | ||
15 | Result | pn | 0: 成功 其他: 錯(cuò)誤代碼 | ? | 1 | 應(yīng)答文件包含 | ||
16 | ErrorDescription | pn | 錯(cuò)誤描述 | ? | 1024 | 應(yīng)答文件包含 | ||
?
ParentType ????<=> ?????ElementType 支持以下組合:
ParentType ????ó??????ElementType 支持的各種組合:
ParentType | ElementType | 支持的Property | 描述 |
Category | Channel | ? | 在分類下增加頻道 |
Category | Program | ? | 在分類下增加節(jié)目 |
Category | Schedule | ? | 在分類下增加TV Schedule |
Category | Package | ? | 在分類下增加Package |
Category | Series | ? | 在分類下增加連續(xù)劇 |
Package | Program | ? | 為PVOD分配Program |
Package | Series | ? | 為PVOD分配連續(xù)劇 |
Package | PhysicalChannel | ? | ? |
Picture | Channel | Type,?Sequence | 把圖片分配給Channel |
Picture | Category | Type,?Sequence | 把圖片分配給Category |
Picture | Program | Type,?Sequence | 把圖片分配給Program |
Picture | Package | Type,?Sequence | 把圖片分配給Package |
Picture | Series | Type,?Sequence | 把圖片分配給連續(xù)劇 |
Program | Movie | ? | 為Program分配Movie |
Program | HTMLContent | ? | 為Program分配HTMLContent |
Series | Program | ? | 為連續(xù)劇/音樂專集添加單集 |
Series | Movie | ? | 為連續(xù)劇劇頭分配Movie |
?
3.15?Reply定義
No | Property名/屬性 | ? | 描述 | 類型 | 長(zhǎng)度 | 注釋 | |
1 | Reply | ? | ? | ? | ? | ? | |
2 | ? | Result | el | 0: 成功 1: 部分成功 其他: 錯(cuò)誤代碼 | String | 5 | ? |
3 | Description | el | 描述 | Enum | 1024 | ? | |
?
3.16?XML例子
以下是XML的例子。請(qǐng)注意,紅色部分為主外鍵。
?
<?xml version="1.0" encoding="UTF-8"?>
<ADI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Objects>
<Object ElementType="Program" ID="1001"?Code="1001"?Action="REGIST">
<Property Name="Code">umai:vod/1001@beijing.cctv</Property>
<Property Name="Name">大長(zhǎng)今</Property>
<Property Name="Language">韓語(yǔ)</Property>
</Object>
<Object ElementType="Movie" ID="2001"?Code="2001"?Action="REGIST">
<Property Name="Code">umai:movie/2001@beijing.cctv</Property>
<Property Name="Type">1</Property>
<Property Name="FileURL">ftp://cctv:cctv@202.11.12.56:21/content/1.mpg</Property>
</Object>
<Object ElementType="Movie" ID="2002"?Code="2002"?Action="REGIST">
<Property Name="Code">umai:movie/2002@beijing.cctv</Property>
<Property Name="Type">2</Property>
<Property Name="FileURL">ftp://cctv:cctv@202.11.12.56:21/content/2.mpg</Property>
</Object>
<Object ElementType="Picture" ID="3001"?Code="3001"?Action="REGIST">
<Property Name="FileURL">ftp://cctv:cctv@202.11.12.56:21/image/1.jpg</Property>
</Object>
</Objects>
<Mappings>
<Mapping?ParentType="Program" ParentID="1001" ParentCode=”1001”?ElementType=”Movie”?ElementID=”2001”?ElementCode=”2001”?Action="REGIST">
</Mapping>
<Mapping?ParentType="Program" ParentID="1001" ParentCode=”1001”?ElementType=”Movie”?ElementID=”2002”?ElementCode=”2002”?Action="REGIST">
</Mapping>
<Mapping?ParentType="Picture" ParentID="3001" ParentCode=”3001”?ElementType=”Program”?ElementID=”1001”?ElementCode=”1001”?Action="REGIST">
<Property Name="Type">2</Property>
</Mapping>
</Mappings>
</ADI>
?
<?xml version="1.0" encoding="UTF-8"?>
<ADI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Objects>
<Object ElementType="Package" ID="5001"?Code="5001"?Action="REGIST">
<Property Name="Code">umai:svod/5001@beijing.cctv</Property>
<Property Name="Type">4</Property>
<Property Name="Name">經(jīng)典包月</Property>
<Property Name="LicensingWindowStart">20060601000000</Property>
<Property Name="LicensingWindowEnd">20070601000000</Property>
<Property Name="Price">15</Property>
<Property Name="Status">1</Property>
</Object>
</Objects>
<Mappings>
<Mapping?ParentType="Package" ParentID="5001"?ParentCode=”5001”?ElementType=”Program”?ElementID=”2001”?ElementCode=”2001”?Action="REGIST">
<Property Name="ValidStart">20060601000000</Property>
<Property Name="ValidEnd">20060701000000</Property>
</Mapping>
<Mapping?ParentType="Package" ParentID="5001" ParentCode=”5001”?ElementType=”Program”?ElementID=”2002”?ElementCode=”2002”?Action="REGIST">
<Property Name="ValidStart">20060601000000</Property>
<Property Name="ValidEnd">20060701000000</Property>
</Mapping>
<Mapping?ParentType="Package" ParentID="5001" ParentCode=”5001”?ElementType=”Program”?ElementID=”2003”?ElementCode=”2003”?Action="REGIST">
<Property Name="ValidStart">20060701000000</Property>
<Property Name="ValidEnd">20060701000000</Property>
</Mapping>
</Mappings>
</ADI>
?
4.?附錄
4.1?視音頻參數(shù)定義
video_type(4 bytes) = (video_codec_type << 16) || (video_level << 8) || video_profile_type;
audio_type(4 bytes) = (audio_codec_type << 16) ||(audio_level << 8) || audio_profile_type;
?
video_type = (video_codec_type << 16) || (video_level << 8) || video_profile_type; | |||
video_type | Video_codec_type | Video_profile_type | Video_level |
? | 1-MPEG2, | 1 Simple, | 1--Low, |
2--Main, | 2--Main, | ||
3--SNR, | 3--High1440 | ||
4--Scalable | 4--High | ||
5--High | ? | ||
? | 2--MPEG4, | 1—Simple?profile | 1—L1_V, |
2—Advanced Simple profile | 2—L2_V, | ||
3--Core, | 3—L3_V | ||
4--Main, | 4—L4_V | ||
5--N-Bit | 5—L5_V | ||
? | 3--WMV9, | 0 | 0 |
? | 4--VC1 | ? | ? |
? | ? | 1.simple | ? |
? | ? | ? | 1.Low |
? | ? | ? | 2.?Medium |
? | ? | ? | ? |
? | ? | 2.main | ? |
? | ? | ? | 1.?Low |
? | ? | ? | 2.?Medium |
? | ? | ? | 3.?High |
? | ? | 3.?Advanced | ? |
? | ? | ? | 0.L0 |
? | ? | ? | 1.L1 |
? | ? | ? | 2.L2 |
? | ? | ? | 3.L3 |
? | ? | ? | 4.L4 |
? | ? | ? | 5.L5 |
? | ? | ? | ? |
? | 5--H.264 | ? | ? |
? | ? | 1.Baseline | ? |
? | ? | ? | 1.L1(L1,L1.1,L1.2,L1.3) |
? | ? | ? | 2.L2 |
? | ? | ? | 3.L3 |
? | ? | 2.Main | ? |
? | ? | ? | 1.L1 |
? | ? | ? | 2.L2 |
? | ? | ? | 3.L3 |
? | ? | ? | 4.L4 |
? | ? | ? | 5.L5 |
? | ? | 3.Extended | ? |
? | ? | ? | 1.L1 |
? | ? | ? | 2.L2 |
? | ? | ? | 3.L3 |
? | ? | ? | 4.L4 |
? | ? | ? | 5.L5 |
audio_type = (audio_codec_type << 16) ||(audio_level << 8) || audio_profile_type; | |||
Audio_type | Audio_codec_type | Audio_profile_type | Audio_level |
? | 9--MPEG2_AUDIO, (13818-3) | 0 | 1--L1_A, |
0 | 2--L2_A, | ||
0 | 3--L3_A, | ||
? | 4--MPEG4_AUDIO, (14496-3) | 0 | 1--L1_A, |
0 | 2--L2_A, | ||
0 | 3--L3_A, | ||
? | 5--AC3, | 0 | 0 |
? | 6--WMA9, | 0 | 0 |
? | 7—MPEG2-AAC (13818-7) | 1—AAC LC | 0 |
2—AAC LTP | 0 | ||
3—AAC Scalable | 0 | ||
4—AAC LD | 0 | ||
? | 8—MPEG4 AAC | 1--AAC LC | 0 |
? | 2--AAC LTP | 0 | |
? | 3--AAC Scalable | 0 | |
? | 4--AAC LD | 0 | |
? | 3—MPEP1 (11172-3) ? | 0 | 1—L1 |
0 | 2—L2 | ||
0 | 3—L3 | ||
? | 0A—G.711 | 0 | 0 |
? | 0B—G.722 | 0 | 0 |
? | 0C—G.722.1 | 0 | 0 |
? | 0D—G.723 | 0 | 0 |
? | 0E—G.726 | 0 | 0 |
? | 0F—G.728 | 0 | 0 |
? | 10—G.729 | 0 | 0 |
? | |||
Stream_type | |||
1--PS, | |||
2--TS, | |||
3--MP4_FILE, | |||
4--WM9, | |||
NOTE:. The value is hex | |||
?
4.2?XML Schema
以下文件是分發(fā)接口定義的XML的Schema
?
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
??<xs:element name="ADI">
????<xs:complexType>
??????<xs:sequence>
????????<xs:element name="Objects" minOccurs="0">
??????????<xs:complexType>
????????????<xs:sequence>
??????????????<xs:element name="Object" minOccurs="0" maxOccurs="unbounded">
????????????????<xs:complexType>
??????????????????<xs:sequence>
????????????????????<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
??????????????????</xs:sequence>
??????????????????<xs:attribute name="ElementType" type="xs:string" use="required"/>
??????????????????<xs:attribute name="ID" type="xs:string" use="required"/>
??????????????????<xs:attribute name="Action" type="xs:string" use="required"/>
????????????????</xs:complexType>
??????????????</xs:element>
????????????</xs:sequence>
??????????</xs:complexType>
????????</xs:element>
????????<xs:element name="Mappings" minOccurs="0">
??????????<xs:complexType>
????????????<xs:sequence>
??????????????<xs:element name="Mapping" minOccurs="0" maxOccurs="unbounded">
????????????????<xs:complexType>
??????????????????<xs:sequence>
????????????????????<xs:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
??????????????????</xs:sequence>
??????????????????<xs:attribute name="ID" type="xs:string" use="optional"/>
??????????????????<xs:attribute name="ParentType" type="xs:string" use="required"/>
??????????????????<xs:attribute name="ParentID" type="xs:string" use="required"/>
??????????????????<xs:attribute name="ElementType" type="xs:string" use="required"/>
??????????????????<xs:attribute name="ElementID" type="xs:string" use="required"/>
??????????????????<xs:attribute name="Action" type="xs:string" use="required"/>
????????????????</xs:complexType>
??????????????</xs:element>
????????????</xs:sequence>
??????????</xs:complexType>
????????</xs:element>
????????<xs:element name="Reply" minOccurs="0">
??????????<xs:complexType>
????????????<xs:sequence>
??????????????<xs:element name="Result" type="xs:string"/>
??????????????<xs:element name="Description" type="xs:string"/>
????????????</xs:sequence>
??????????</xs:complexType>
????????</xs:element>
??????</xs:sequence>
??????<xs:attribute name="SPCode" type="xs:string" use="optional"/>
??????<xs:attribute name="SubsidiaryID" type="xs:string" use="optional"/>
??????<xs:attribute name="StaffID" type="xs:string" use="optional"/>
??????<xs:attribute name="CheckFlag" type="xs:string" use="optional"/>
??????<xs:attribute name="SyncFlag" type="xs:string" use="optional"/>
????</xs:complexType>
??</xs:element>
??<xs:complexType name="PropertyType">
????<xs:simpleContent>
??????<xs:extension base="xs:string">
????????<xs:attribute name="Name" type="xs:string" use="required"/>
??????</xs:extension>
????</xs:simpleContent>
??</xs:complexType>
</xs:schema>
?
4.3?WSDL
以下文件是soap接口中上層主動(dòng)分發(fā)接口的WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="iptv" xmlns:impl="iptv" xmlns:intf="iptv" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
?<wsdl:types>
??<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="iptv">
???<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
???<complexType name="CSPResult">
????<sequence>
?????<element name="Result" type="xsd:int"/>
?????<element name="ErrorDescription" nillable="true" type="soapenc:string"/>
????</sequence>
???</complexType>
??</schema>
?</wsdl:types>
?
???<wsdl:message name="ExecCmdRequest">
??????<wsdl:part name="CSPID" type="soapenc:string"/>
??????<wsdl:part name="LSPID" type="soapenc:string"/>
??????<wsdl:part name="CorrelateID" type="soapenc:string"/>
??????<wsdl:part name="CmdFileURL" type="soapenc:string"/>
???</wsdl:message>
?
???<wsdl:message name="ExecCmdResponse">
??????<wsdl:part name="ExecCmdReturn" type="impl:CSPResult"/>
???</wsdl:message>
?
???<wsdl:portType name="CSPRequest">
??????<wsdl:operation name="ExecCmd" parameterOrder="CSPID LSPID CorrelateID CmdFileURL">
?????????<wsdl:input name="ExecCmdRequest" message="impl:ExecCmdRequest"/>
?????????<wsdl:output name="ExecCmdResponse" message="impl:ExecCmdResponse"/>
??????</wsdl:operation>
???</wsdl:portType>
?
???<wsdl:binding name="ctmsSoapBinding" type="impl:CSPRequest">
??????<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
??????<wsdl:operation name="ExecCmd">
?????????<wsdlsoap:operation soapAction=""/>
?????????<wsdl:input name="ExecCmdRequest">
????????????<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="iptv"/>
?????????</wsdl:input>
?????????<wsdl:output name="ExecCmdResponse">
????????????<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="iptv"/>
?????????</wsdl:output>
??????</wsdl:operation>
???</wsdl:binding>
?
???<wsdl:service name="CSPRequestService">
??????<wsdl:port name="ctms" binding="impl:ctmsSoapBinding">
?????????<wsdlsoap:address location="http://127.0.0.1"/>
??????</wsdl:port>
???</wsdl:service>
?
</wsdl:definitions>
?
以下文件是soap接口中下層通知相應(yīng)接口的WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="iptv" xmlns:impl="iptv" xmlns:intf="iptv" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
?<wsdl:types>
??<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="iptv">
???<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
???<complexType name="CSPResult">
????<sequence>
?????<element name="Result" type="xsd:int"/>
?????<element name="ErrorDescription" nillable="true" type="soapenc:string"/>
????</sequence>
???</complexType>
??</schema>
?</wsdl:types>
?
???<wsdl:message name="ResultNotifyResponse">
??????<wsdl:part name="ResultNotifyReturn" type="impl:CSPResult"/>
???</wsdl:message>
?
???<wsdl:message name="ResultNotifyRequest">
??????<wsdl:part name="CSPID" type="soapenc:string"/>
??????<wsdl:part name="LSPID" type="soapenc:string"/>
??????<wsdl:part name="CorrelateID" type="soapenc:string"/>
??????<wsdl:part name="CmdResult" type="xsd:int"/>
??????<wsdl:part name="ResultFileURL" type="soapenc:string"/>
???</wsdl:message>
?
???<wsdl:portType name="CSPResponse">
??????<wsdl:operation name="ResultNotify" parameterOrder="CSPID LSPID CorrelateID CmdResult ResultFileURL">
?????????<wsdl:input name="ResultNotifyRequest" message="impl:ResultNotifyRequest"/>
?????????<wsdl:output name="ResultNotifyResponse" message="impl:ResultNotifyResponse"/>
??????</wsdl:operation>
???</wsdl:portType>
?
???<wsdl:binding name="ctmsSoapBinding" type="impl:CSPResponse">
??????<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
??????<wsdl:operation name="ResultNotify">
?????????<wsdlsoap:operation soapAction=""/>
?????????<wsdl:input name="ResultNotifyRequest">
????????????<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="iptv"/>
?????????</wsdl:input>
?????????<wsdl:output name="ResultNotifyResponse">
????????????<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="iptv"/>
?????????</wsdl:output>
??????</wsdl:operation>
???</wsdl:binding>
?
???<wsdl:service name="CSPResponseService">
??????<wsdl:port name="ctms" binding="impl:ctmsSoapBinding">
?????????<wsdlsoap:address location="http://127.0.0.1"/>
??????</wsdl:port>
???</wsdl:service>
?
</wsdl:definitions>
?
總結(jié)
以上是生活随笔為你收集整理的央视国际节目定价发布接口规范C2的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网站为什么要备案?网站备案流程是什么?
- 下一篇: 8产权界定_保护与限制