I
CAS 2003 3 CAS GY/Z 174-2001 GY/Z 175-2001 Extensible Markup Language (XML) 1.0 File Transfer Protocol, RFC959, RFC1123, RFC228, RFC2577, RFC2640 2003 6 13 2005 1 28 II
1....1 2......1 3......1 3.1...1 3.2. 1 4......2 5.CAS....2 6.. 2 6.1.. 3 6.2 TCP/IP.....3 6.3 HTTP....3 6.4 XML....4 6.5.. 4 7.. 4 7.1. 4 7.2..... 6 8. XML Schema. 7 8.1 XML Schema.... 7 8.2 XML Schema..... 8 8.3 IC XML Schema.... 9 8.4 XML Schema... 10 8.5 XML Schema... 11 9.... 13 10.IC 13 11.. 15 12.. 16 13.CAS 18 14.IC CARD_NO. 18....20 III
1 CAS IC CAS 2 GY/Z 174-2001 GY/Z 175-2001 Extensible Markup Language (XML) 1.0 File Transfer Protocol, RFC959, RFC1123, RFC228, RFC2577, RFC2640 3 3.1 Product IC CAS CAS CAS Integrated Circuit Card Smart Card IC IC IC 3.2 CA Conditional Access XML Extensible Markup Language IC Integrated Circuit TCP Transfer Control Protocol 1
IP Internet Protocol HTTP Hypertext Transfer Protocol HTTPS Secure Hypertext Transfer Protocol URL Uniform Resource Locator 4 CAS CAS IC CAS CAS IC 5 CAS CAS CAS 1 CAS 1 CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS 00:00 00:59 CAS CAS CAS CAS CAS CAS CAS CAS 6 2
CAS IP CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS CAS 2 CAS CAS XML HTTP/HTTPS TCP/IP 2 CAS 6.1 CAS CAS IP 10M/100M RJ-45 6.2 TCP/IP CAS CAS IP IP CAS CAS 6.3 HTTP 3
CAS HTTP/HTTPS CAS HTTP/HTTPS CAS HTTP/HTTPS HTTP/HTTPS GET CAS CAS URL CAS URL http://./xml http://10.1.2.234:6078/casbuffer/20030302_cas_productlistreport.xml CAS CAS 6.4 XML CAS URL XML 6.5 CAS CAS CAS HTTP CAS CAS CAS CAS 7 7.1 7.1.1 CAS 00:00 CAS 1 CAS IC _. 2003 3 2 20030302_CAS_StaticsReport.xml 4
20030302_CAS_ICCardReport.xml 20030302_CAS_EntitlementReport.xml 20030302_CAS_ProductListReport.xml IC 00:00 CAS XML 2003-05-04 23:59:59 2003-04-05 00:00:00 2003-04-06 00:00:00 2003-04-07 00:00:00 2003-04-08 00:00:00 2003-04-05 00:00:00 IC CAS 00:00:00 00:00:00 00:00 CAS 00:00 00:59 CAS 1M CAS XML ZIP.zip ZIP XML CAS CAS 7.1.2 Date yyyy-mm-dd yyyy mm dd 4 2 2 0 5
2003-08-25 2003-12-07 DateTime yyyy-mm-dd hh:mi:ss yyyy mm dd hh mi ss 4 2 2 2 2 2 0 24 2003-08-25 12:50:23 2003-12-07 08:48:09 7.2 CAS XML, GB2312 <?xml version="1.0" encoding="gb2312" standalone="yes"?> <Msg Version="1" MsgID="" Type="CASUp" DateTime="" SrcCode="110000C01" DstCode="" ReplyID=""> <!-- --> </Msg> Msg CAS Version 1 MsgID Type CASUp DateTime SrcCode CAS 13 DstCode ReplyID 6
8 XML Schema 8.1 XML Schema CASBuffer.xsd <?xml version="1.0" encoding="gb2312"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"> <xs:simpletype name="datetype"> <xs:restriction base="xs:date"> </xs:restriction> </xs:simpletype> <xs:simpletype name="datetimetype"> <xs:restriction base="xs:string"> <xs:pattern value='[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}'/> </xs:restriction> </xs:simpletype> <xs:simpletype name="srccodetype"> <xs:restriction base="xs:string"> <xs:pattern value="[0-9]{6}c[0-9]{2}"/> <xs:whitespace value=""/> </xs:restriction> </xs:simpletype> <xs:simpletype name="iccardno"> <xs:restriction base="xs:string"> <xs:pattern value="8[0-9]{15}"/> <xs:whitespace value=""/> </xs:restriction> </xs:simpletype> <xs:simpletype name="iccardid"> <xs:restriction base="xs:string"> <xs:maxlength value="16"/> <xs:minlength value="0"/> <xs:pattern value="[0]{0} 0x[0-9,A-F,a-f]{1,12}"/> <xs:whitespace value=""/> </xs:restriction> </xs:simpletype> <xs:simpletype name="casid"> <xs:restriction base="xs:string"> <xs:maxlength value="16"/> <xs:minlength value="3"/> <xs:pattern value="0x[0-9,a-f,a-f]{1,8}"/> 7
<xs:whitespace value=""/> </xs:restriction> </xs:simpletype> <xs:simpletype name="productcode"> <xs:restriction base="xs:string"> <xs:pattern value="[0-9,a-z,a-z]{1,24}"/> <xs:whitespace value=""/> </xs:restriction> </xs:simpletype> </xs:schema> 8.2 XML Schema CAS_StaticsReport.xsd <?xml version="1.0" encoding="gb2312"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"> <xs:include schemalocation="casbuffer.xsd"/> <xs:element name="msg" type="msgtype"> </xs:element> <xs:complextype name="msgtype"> <xs:sequence> <xs:element name="staticsreport" type="staticsreporttype" minoccurs="1" maxoccurs="1"/> </xs:sequence> <xs:attribute name="version" type="xs:integer" fixed="1" use="required"/> <xs:attribute name="msgid" type="xs:string" fixed="" use="required"/> <xs:attribute name="type" type="xs:string" fixed="casup" use="required"/> <xs:attribute name="datetime" type="xs:string" fixed="" use="required"/> <xs:attribute name="srccode" type="srccodetype" use="required"/> <xs:attribute name="dstcode" type="xs:string" fixed="" use="required"/> <xs:attribute name="replyid" type="xs:string" fixed="" use="required"/> </xs:complextype> <xs:complextype name="staticsreporttype"> <xs:attribute name="date" type="datetype" use="required"/> <xs:attribute name="totaliccardnum" type="xs:nonnegativeinteger" use="required"/> <xs:attribute name="totaleiccardnum" 8
type="xs:nonnegativeinteger" use="required"/> </xs:complextype> </xs:schema> 8.3 IC XML Schema CAS_ICCardReport.xsd <?xml version="1.0" encoding="gb2312"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"> <xs:include schemalocation="casbuffer.xsd"/> <xs:element name="msg" type="msgtype"> </xs:element> <xs:complextype name="msgtype"> <xs:sequence> <xs:element name="iccardqueryreport" type="iccardqueryreporttype" minoccurs="1" maxoccurs="1"/> </xs:sequence> <xs:attribute name="version" type="xs:integer" fixed="1" use="required"/> <xs:attribute name="msgid" type="xs:string" fixed="" use="required"/> <xs:attribute name="type" type="xs:string" fixed="casup" use="required"/> <xs:attribute name="datetime" type="xs:string" fixed="" use="required"/> <xs:attribute name="srccode" type="srccodetype" use="required"/> <xs:attribute name="dstcode" type="xs:string" fixed="" use="required"/> <xs:attribute name="replyid" type="xs:string" fixed="" use="required"/> </xs:complextype> <xs:complextype name="iccardqueryreporttype"> <xs:sequence> <xs:element name="iccard" type="iccardtype" minoccurs="0" maxoccurs="unbounded"/> </xs:sequence> <xs:attribute name="date" type="datetype" use="required"/> </xs:complextype> <xs:complextype name="iccardtype"> 9
<xs:attribute name="datetime" type="datetimetype" use="required"/> <xs:attribute name="status" use="required"> <xs:simpletype> <xs:restriction base="xs:string"> <xs:enumeration value="create"/> <xs:enumeration value="delete"/> </xs:restriction> </xs:simpletype> </xs:attribute> <xs:attribute name="iccardno" type="iccardno" use="required"/> <xs:attribute name="iccardid" type="iccardid" use="required"/> <xs:attribute name="casid" type="casid" use="required"/> </xs:complextype> </xs:schema> 8.4 XML Schema CAS_EntitlementReport.xsd <?xml version="1.0" encoding="gb2312"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"> <xs:include schemalocation="casbuffer.xsd"/> <xs:element name="msg" type="msgtype"> </xs:element> <xs:complextype name="msgtype"> <xs:sequence> <xs:element name="entitlementreport" type="entitlementqueryreporttype" minoccurs="1" maxoccurs="1"/> </xs:sequence> <xs:attribute name="version" type="xs:integer" fixed="1" use="required"/> <xs:attribute name="msgid" type="xs:string" fixed="" use="required"/> <xs:attribute name="type" type="xs:string" fixed="casup" use="required"/> <xs:attribute name="datetime" type="xs:string" fixed="" use="required"/> <xs:attribute name="srccode" type="srccodetype" use="required"/> <xs:attribute name="dstcode" type="xs:string" fixed="" use="required"/> <xs:attribute name="replyid" type="xs:string" fixed="" use="required"/> </xs:complextype> <xs:complextype name="entitlementqueryreporttype"> 10
<xs:sequence> <xs:element name="entitlement" type="entitlementtype" minoccurs="0" maxoccurs="unbounded"/> </xs:sequence> <xs:attribute name="date" type="datetype" use="required"/> </xs:complextype> <xs:complextype name="entitlementtype"> <xs:attribute name="datetime" type="datetimetype" use="required"/> <xs:attribute name="status" use="required"> <xs:simpletype> <xs:restriction base="xs:string"> <xs:enumeration value="create"/> <xs:enumeration value="delete"/> </xs:restriction> </xs:simpletype> </xs:attribute> <xs:attribute name="iccardno" type="iccardno" use="required"/> <xs:attribute name="iccardid" type="iccardid" use="required"/> <xs:attribute name="casid" type="casid" use="required"/> <xs:attribute name="productcode" type="productcode" use="required"/> </xs:complextype> </xs:schema> 8.5 XML Schema CAS_ProductListReport.xsd <?xml version="1.0" encoding="gb2312"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema"> <xs:include schemalocation="casbuffer.xsd"/> <xs:element name="msg" type="msgtype"> </xs:element> <xs:complextype name="msgtype"> <xs:documentation/> <xs:sequence> <xs:element name="productlistreport" type="productlistreporttype" minoccurs="1" maxoccurs="1"/> </xs:sequence> <xs:attribute name="version" type="xs:integer" fixed="1" use="required"/> 11
<xs:attribute name="msgid" type="xs:string" fixed="" use="required"/> <xs:attribute name="type" type="xs:string" fixed="casup" use="required"/> <xs:attribute name="datetime" type="xs:string" fixed="" use="required"/> <xs:attribute name="srccode" type="srccodetype" use="required"/> <xs:attribute name="dstcode" type="xs:string" fixed="" use="required"/> <xs:attribute name="replyid" type="xs:string" fixed="" use="required"/> </xs:complextype> <xs:complextype name="productlistreporttype"> <xs:documentation/> <xs:sequence> <xs:element name="caproduct" type="caproducttype" minoccurs="0" maxoccurs="unbounded"/> </xs:sequence> <xs:attribute name="date" type="datetype" use="required"/> </xs:complextype> <xs:complextype name="caproducttype"> <xs:documentation/> <xs:attribute name="active" use="required"> <xs:simpletype> <xs:restriction base="xs:integer"> <xs:enumeration value="1"/> <xs:enumeration value="0"/> </xs:restriction> </xs:simpletype> </xs:attribute> <xs:attribute name="productcode" type="productcode" use="required"/> <xs:attribute name="productname" use="required"> <xs:simpletype> <xs:restriction base="xs:string"> <xs:maxlength value="100"/> <xs:minlength value="0"/> </xs:restriction> </xs:simpletype> </xs:attribute> <xs:attribute name="casid" type="casid" use="required"/> <xs:attribute name="totaliccardnum" </xs:complextype> </xs:schema> type="xs:nonnegativeinteger" use="required"/> 12
9 00:00 CAS CAS_StaticsReport.xml <?xml version="1.0" encoding="gb2312" standalone="yes"?> <Msg xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nonamespaceschemalocation="cas_staticsreport.xsd" Version="1" MsgID="" Type="CASUp" DateTime="" SrcCode="110000C01" DstCode="" ReplyID=""> <StaticsReport Date="2003-02-01" TotalICCardNum="10000" TotalEICCardNum="8000"> <!-- Date TotalICCardNum TotalEICCardNum --> </StaticsReport> </Msg> StaticsReport Date Date TotalICCardNum CAS IC TotalEICCardNum CAS IC 10 IC IC CAS IC CAS_ICCardReport.xml 13
<?xml version="1.0" encoding="gb2312" standalone="yes"?> <Msg xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nonamespaceschemalocation="cas_iccardreport.xsd" Version="1" MsgID="" Type="CASUp" DateTime="" SrcCode="110000C01" DstCode="" ReplyID=""> <ICCardQueryReport Date="2003-02-01"> <ICCard DateTime="2003-02-01 12:23:34" Status="Create" ICCardNo="1234567890123456" ICCardID="0x010203040506" CASID="0x4A01" /> <ICCard DateTime="2003-02-01 14:30:00" Status="Delete" ICCardNo="1234567890123457" ICCardID="0x010203040507" CASID="0x4A01" /> <!-- DateTime Status Create IC Delete IC ICCardNo ICCardID CASID --> </ICCardQueryReport> </Msg> ICCardReport ICCard ICCardReport Date Date ICCard 14
DateTime IC DateTime Status Create IC Delete IC ICCardNo IC 14 ICCardID IC GY/Z 175-2001 CASID CAS ID 16 0x4A01 GY/Z 175-2001 11 IC CAS IC CAS_EntitlementReport.xml <?xml version="1.0" encoding="gb2312" standalone="yes"?> <Msg xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nonamespaceschemalocation="cas_entitlementreport.xsd" Version="1" MsgID="" Type="CASUp" DateTime="" SrcCode="110000C01" DstCode="" ReplyID=""> <EntitlementReport Date="2003-02-01"> <Entitlement DateTime="2003-02-01 06:12:45" ICCardNo="1234567890123456" ICCardID="" Status="Create" ProductCode="1" CASID="0x4A01"/> <Entitlement DateTime="2003-02-01 07:25:43" ICCardNo="1234567890123457" ICCardID="" Status="Delete" ProductCode="2" CASID="0x4A01"/> 15
<!-- DateTime Status ICCardNo ICCardID CASID ProductCode --> </EntitlementReport> Create Delete </Msg> EntitlementReport Entitlement EntitlementReport Date Date Entitlement DateTime DateTime Status Create Delete ICCardNo IC 14 ICCardID IC GY/Z 175-2001 CASID CAS ID 16 0x4A01 GY/Z 175-2001 ProductCode CAS CA SMS CAS 12 CAS 16
CAS_ProductListReport.xml <?xml version="1.0" encoding="gb2312" standalone="yes"?> <Msg xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nonamespaceschemalocation="cas_productlistreport.xsd" Version="1" MsgID="" Type="CASUp" DateTime="" SrcCode="110000C01" DstCode="" ReplyID=""> <ProductListReport Date="2003-02-01"> <CAProduct Active="1" <!-- ProductCode="1" ProductName="CCTV " CASID="0x4A01" TotalICCardNum="10000"> Active 1 0 ProductCode ProductName CASID TotalICCardNum --> </CAProduct> <CAProduct Active="1" ProductCode="2" ProductName="" CASID="0x4A01" 17
</ProductListReport> </Msg> TotalICCardNum="11000"/> ProductListReport CA CAProduct CAProductReport Date Date CAProduct Active 0 1 ProductCode CA CA CA ProductName 100 CASID CAS ID 16 0x4A01 GY/Z 175-2001 13 CAS 9 6 CAS GB/T 2260-1999 7 C 8 9 CAS 14 IC CARD_NO GB/T 15120-94 16 8 XXXX QQ YYYYYYYY Z 18
CAS 4 8123412123456786 8 XXXX 4 QQ CAS YYYYYYYY Z GB/T 15694.1-1995 19
1. 2. CAS CAS 3. GY/Z 174-2001 GY/Z 175-2001 Extensible Markup Language (XML) 1.0 File Transfer Protocol, RFC959, RFC1123, RFC228, RFC2577, RFC2640 4. 2003 3 2003 6 13 2005 1 28 1 31 5. CAS SMS 20