混合报文

流报文+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>

群交流(262200309)
原文地址:https://www.cnblogs.com/webster1/p/4649298.html