|
@@ -1,7 +1,7 @@
|
|
|
<?xml version="1.0" encoding="gb2312" ?>
|
|
|
<entity name="ContactlessCard">
|
|
|
<class name="ContactlessCardService" overlap="true" exclusive="false">
|
|
|
- <twoway name="Insert" overlap="true">
|
|
|
+ <twoway name="Insert" overlap="true" method_id="0">
|
|
|
<req>
|
|
|
<param name="aid" type="string"/>
|
|
|
<param name="order" type="string"/>
|
|
@@ -27,11 +27,11 @@
|
|
|
<param name="reserved4" type="string"/>
|
|
|
</res>
|
|
|
</twoway>
|
|
|
- <oneway name="CancelInsert" overlap="true">
|
|
|
+ <oneway name="CancelInsert" overlap="true" method_id="1">
|
|
|
</oneway>
|
|
|
- <oneway name="InsertWaitMore" overlap="true">
|
|
|
+ <oneway name="InsertWaitMore" overlap="true" method_id="2">
|
|
|
</oneway>
|
|
|
- <twoway name="PreOnline" overlap="true">
|
|
|
+ <twoway name="PreOnline" overlap="true" method_id="3">
|
|
|
<req>
|
|
|
<param name="businessData" type="string"/>
|
|
|
<param name="reserved1" type="string"/>
|
|
@@ -41,7 +41,7 @@
|
|
|
<param name="result" type="string"/>
|
|
|
</res>
|
|
|
</twoway>
|
|
|
- <twoway name="PostOnline" overlap="true">
|
|
|
+ <twoway name="PostOnline" overlap="true" method_id="4">
|
|
|
<req>
|
|
|
<param name="data" type="string"/>
|
|
|
</req>
|
|
@@ -49,15 +49,15 @@
|
|
|
<param name="result" type="string"/>
|
|
|
</res>
|
|
|
</twoway>
|
|
|
- <twoway name="Eject" overlap="true">
|
|
|
+ <twoway name="Eject" overlap="true" method_id="5">
|
|
|
<req>
|
|
|
</req>
|
|
|
<res>
|
|
|
</res>
|
|
|
</twoway>
|
|
|
- <oneway name="Exit" overlap="true">
|
|
|
+ <oneway name="Exit" overlap="true" method_id="6">
|
|
|
</oneway>
|
|
|
- <twoway name="QueryCardInfo" overlap="true">
|
|
|
+ <twoway name="QueryCardInfo" overlap="true" method_id="7">
|
|
|
<req>
|
|
|
</req>
|
|
|
<res>
|
|
@@ -65,17 +65,101 @@
|
|
|
<param name="reserved1" type="int"/>
|
|
|
<param name="reserved2" type="string"/>
|
|
|
</res>
|
|
|
- </twoway>
|
|
|
- <twoway name="GetDevInfo" overlap="true" method_id="65535">
|
|
|
+ </twoway>
|
|
|
+ <!--查询卡机设备状态接口 -->
|
|
|
+ <!--1、非接打开失败, errorCode为Error_DevNotAvailable(2050),rtaCode为RTA2J10-->
|
|
|
+ <!--2、非接正在打开中, errorCode为Error_NotInit(769),rtaCode为RTA2J10-->
|
|
|
+ <twoway name="GetDevInfo" overlap="true" method_id="65535" jsflag="true">
|
|
|
<req>
|
|
|
</req>
|
|
|
<res>
|
|
|
<param name="type" type="string" />
|
|
|
<param name="model" type="string" />
|
|
|
<param name="version" type="string" />
|
|
|
+ <!--卡机状态 0设备未打开 1 正常运行 3卡机异常不可工作-->
|
|
|
<param name="state" type="int" />
|
|
|
</res>
|
|
|
- </twoway>
|
|
|
+ </twoway>
|
|
|
+
|
|
|
+ <!--非接读卡接口 -->
|
|
|
+ <!--1、非接打开失败, errorCode为Error_DevNotAvailable(2050),rtaCode为RTA2J10-->
|
|
|
+ <!--2、非接处寻卡超时, errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J12-->
|
|
|
+ <!--3、卡检测失败,非IC卡 errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J13-->
|
|
|
+ <!--4、读卡失败,激活非接失败, errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J01-->
|
|
|
+ <!--5、读卡失败,读IC数据失败 errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J02-->
|
|
|
+ <!--6、读卡取消, errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J14-->
|
|
|
+ <twoway name="ReadJS" overlap="true" method_id="40" jsflag="true">
|
|
|
+ <req>
|
|
|
+ <!--Aid列表-->
|
|
|
+ <param name="aid" type="string"/>
|
|
|
+ <!--业务数据-->
|
|
|
+ <param name="businessData" type="string"/>
|
|
|
+ <param name="reserved1" type="int"/>
|
|
|
+ <param name="reserved2" type="string"/>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ <!--读IC结果 0失败 1成功-->
|
|
|
+ <param name="icState" type="int"/>
|
|
|
+ <!--IC读取的数据<json格式>
|
|
|
+ ACTION:行为代码
|
|
|
+ ATC_CODE:交易计数器code
|
|
|
+ ARQC_CODE:授权请求code
|
|
|
+ MAC:安全报文鉴别码
|
|
|
+ ARQC_SIZE:授权请求长度
|
|
|
+ ARQC_DATA:授权请求数据
|
|
|
+ T2TRACK2_DATA:磁道2数据
|
|
|
+ EXPIRE_DATE:卡片失效日期
|
|
|
+ T2CARD_SERIAL:卡序号
|
|
|
+ CARD_CAT:卡类型
|
|
|
+ IC_TAGS:基础IC数据
|
|
|
+ -->
|
|
|
+ <param name="result" type="string"/>
|
|
|
+ <param name="reserved1" type="array_int"/>
|
|
|
+ <param name="reserved2" type="array_string"/>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+
|
|
|
+ <!--联机后处理接口-->
|
|
|
+ <!--1、非接打开失败, errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J10-->
|
|
|
+ <twoway name="PostOnlineJS" overlap="true" method_id="41" jsflag="true">
|
|
|
+ <req>
|
|
|
+ <!--联机后处理数据-->
|
|
|
+ <param name="data" type="string"/>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ <!--处理结果-->
|
|
|
+ <param name="result" type="string"/>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+
|
|
|
+ <!--吐卡接口-->
|
|
|
+ <!--1、非接打开失败, errorCode为Error_DevNotAvailable(2050),rtaCode为RTA2J10-->
|
|
|
+ <!--2、超时未取卡 errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J16-->
|
|
|
+ <twoway name="EjectJS" overlap="true" method_id="42" jsflag="true">
|
|
|
+ <req>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+
|
|
|
+ <!--查询非接卡片位置接口-->
|
|
|
+ <!--1、非接打开失败, errorCode为Error_DevNotAvailable(2050),rtaCode为RTA2J10-->
|
|
|
+ <!--2、查询设备状态失败, errorCode为Error_Unexpect(2147483646),rtaCode为RTA2J04-->
|
|
|
+ <twoway name="QueryHasCardJS" overlap="true" method_id="43" jsflag="true">
|
|
|
+ <req>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ <!--卡片位置情况 0:没有发现卡片 6:非接处有非接卡片 7:非接处有身份证-->
|
|
|
+ <param name="position" type="int"/>
|
|
|
+ <param name="reserved1" type="int"/>
|
|
|
+ <param name="reserved2" type="string"/>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+
|
|
|
+ <!--取消插卡接口-->
|
|
|
+ <oneway name="CancelReadJS" overlap="true" method_id="44" jsflag="true">
|
|
|
+ </oneway>
|
|
|
+
|
|
|
</class>
|
|
|
<message name="FetchCard">
|
|
|
<param name="status" type="int"/>
|