码迷,mamicode.com
首页 > 其他好文 > 详细

混合报文

时间:2015-07-15 20:58:44      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:

流报文+xml报文

6为前置长度

<?xml version="1.0" encoding="UTF-8"?>
<message xmlns="http://www.bocom.com/jump/transformer/packet"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.bocom.com/jump/transformer/packet packet.xsd"
 encoding="GBK" trace="true" type="LLLLLL">
 <segment name="bytesHeader">
  <fixString length="1" name="encryptionKey" />
 </segment>
 <segment name="xmlBody">
  <xml name="xml" format="none">
   <include elementFactory="xml://WEB-INF/classes/config/stream/yt/encode/"
    path="encode_xml_header.xml" />
  </xml>
 </segment>
</message>

--------------------xml报文

<?xml version="1.0" encoding="UTF-8" ?>
<message xmlns="http://www.bocom.com/jump/transformer/xml"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.bocom.com/jump/transformer/xml xml.xsd" xmlStyle="none"
 name="message" trace="true" encoding="GBK" >
 
 <record name="TX"  xmlStyle=".">
  <string name="ISEQNO"      alias="ISeqNo"/>              <!--请求序列码ISeqNo-->
  <string name="TRANTIME"  alias="tranTime"/>                  <!--交易日期-->
  <string name="TRANSCODE"  alias="TransCode" referred="true"/> <!--交易代码-->
  <include keys="TRANSCODE"   encodePrefix="en_" />   
 </record>
 
</message>

混合报文

标签:

原文地址:http://www.cnblogs.com/webster1/p/4649298.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!