XML报文:电子工资单

Posted Mr方de银企互联知识分享

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了XML报文:电子工资单相关的知识,希望对你有一定的参考价值。

本文尝试使用银企互联接口提交电子工资单。


电子工资单包含15个自定义项目,25个收入明细项,25个支出明细项。

自定义项目一般是和收入、支出无直接关系的信息,比如职务级别、工作年限、岗位名称等。

本例子中——自定义项目是:岗位、薪水级别、入职年月;

收入项目是工资、奖金、补贴;

支出项目是养老金、医疗保险、扣罚、所得税。

仅作为演示举例。


提交电子工资单,使用0.0.1.0版本接口。

<?xml version="1.0" encoding="GBK"?>

<CMS>

<eb>

<pub>

<TransCode>PAYSLIPS</TransCode>

<CIS>24477500-1AAAAA</CIS>

<BankCode>102</BankCode>

<ID>SuZhouYQHL.y.1102</ID>

<TranDate>20190302</TranDate>

<TranTime>115610816</TranTime>

<fSeqno>190302115669C4@PSP</fSeqno>

</pub>

<in>

<TotalNo>1</TotalNo>

<TotalIncome>642000</TotalIncome>

<InItemSum>3</InItemSum>

<OutItemSum>4</OutItemSum>

<Notes>银企互联-工资单演示</Notes>

<IncomeName1>工资</IncomeName1>

<IncomeName2>奖金</IncomeName2>

<IncomeName3>补贴</IncomeName3>

<IncomeName4></IncomeName4>

<IncomeName5></IncomeName5>

<IncomeName6></IncomeName6>

<IncomeName7></IncomeName7>

<IncomeName8></IncomeName8>

<IncomeName9></IncomeName9>

<IncomeName10></IncomeName10>

<IncomeName11></IncomeName11>

<IncomeName12></IncomeName12>

<IncomeName13></IncomeName13>

<IncomeName14></IncomeName14>

<IncomeName15></IncomeName15>

<IncomeName16></IncomeName16>

<IncomeName17></IncomeName17>

<IncomeName18></IncomeName18>

<IncomeName19></IncomeName19>

<IncomeName20></IncomeName20>

<IncomeName21></IncomeName21>

<IncomeName22></IncomeName22>

<IncomeName23></IncomeName23>

<IncomeName24></IncomeName24>

<IncomeName25></IncomeName25>

<OutcomeName1>养老金</OutcomeName1>

<OutcomeName2>医疗保险</OutcomeName2>

<OutcomeName3>扣罚</OutcomeName3>

<OutcomeName4>所得税</OutcomeName4>

<OutcomeName5></OutcomeName5>

<OutcomeName6></OutcomeName6>

<OutcomeName7></OutcomeName7>

<OutcomeName8></OutcomeName8>

<OutcomeName9></OutcomeName9>

<OutcomeName10></OutcomeName10>

<OutcomeName11></OutcomeName11>

<OutcomeName12></OutcomeName12>

<OutcomeName13></OutcomeName13>

<OutcomeName14></OutcomeName14>

<OutcomeName15></OutcomeName15>

<OutcomeName16></OutcomeName16>

<OutcomeName17></OutcomeName17>

<OutcomeName18></OutcomeName18>

<OutcomeName19></OutcomeName19>

<OutcomeName20></OutcomeName20>

<OutcomeName21></OutcomeName21>

<OutcomeName22></OutcomeName22>

<OutcomeName23></OutcomeName23>

<OutcomeName24></OutcomeName24>

<OutcomeName25></OutcomeName25>

<RemarkName1>岗位</RemarkName1>

<RemarkName2>薪水级别</RemarkName2>

<RemarkName3>入职年月</RemarkName3>

<RemarkName4></RemarkName4>

<RemarkName5></RemarkName5>

<RemarkName6></RemarkName6>

<RemarkName7></RemarkName7>

<RemarkName8></RemarkName8>

<RemarkName9></RemarkName9>

<RemarkName10></RemarkName10>

<RemarkName11></RemarkName11>

<RemarkName12></RemarkName12>

<RemarkName13></RemarkName13>

<RemarkName14></RemarkName14>

<RemarkName15></RemarkName15>

<SignTime>20190302115610816</SignTime>

<rd>

<EmpName>方方方</EmpName>

<Department>网络金融部</Department>

<EmpNo>00112233</EmpNo>

<PayDate>201903</PayDate>

<Account1>622202110201051xxxx</Account1>

<Account2></Account2>

<Account3></Account3>

<Intotal>680000</Intotal>

<Outtotal>38000</Outtotal>

<Factincome>642000</Factincome>

<Income1>500000</Income1>

<Income2>150000</Income2>

<Income3>30000</Income3>

<Income4></Income4>

<Income5></Income5>

<Income6></Income6>

<Income7></Income7>

<Income8></Income8>

<Income9></Income9>

<Income10></Income10>

<Income11></Income11>

<Income12></Income12>

<Income13></Income13>

<Income14></Income14>

<Income15></Income15>

<Income16></Income16>

<Income17></Income17>

<Income18></Income18>

<Income19></Income19>

<Income20></Income20>

<Income21></Income21>

<Income22></Income22>

<Income23></Income23>

<Income24></Income24>

<Income25></Income25>

<Outcome1>20000</Outcome1>

<Outcome2>18000</Outcome2>

<Outcome3>0</Outcome3>

<Outcome4>12300</Outcome4>

<Outcome5></Outcome5>

<Outcome6></Outcome6>

<Outcome7></Outcome7>

<Outcome8></Outcome8>

<Outcome9></Outcome9>

<Outcome10></Outcome10>

<Outcome11></Outcome11>

<Outcome12></Outcome12>

<Outcome13></Outcome13>

<Outcome14></Outcome14>

<Outcome15></Outcome15>

<Outcome16></Outcome16>

<Outcome17></Outcome17>

<Outcome18></Outcome18>

<Outcome19></Outcome19>

<Outcome20></Outcome20>

<Outcome21></Outcome21>

<Outcome22></Outcome22>

<Outcome23></Outcome23>

<Outcome24></Outcome24>

<Outcome25></Outcome25>

<Remark1>营销岗</Remark1>

<Remark2>二级经理</Remark2>

<Remark3>2001年9月</Remark3>

<Remark4></Remark4>

<Remark5></Remark5>

<Remark6></Remark6>

<Remark7></Remark7>

<Remark8></Remark8>

<Remark9></Remark9>

<Remark10></Remark10>

<Remark11></Remark11>

<Remark12></Remark12>

<Remark13></Remark13>

<Remark14></Remark14>

<Remark15></Remark15>

</rd>

</in>

</eb>

</CMS>


银行返回信息:

<?xml  version="1.0" encoding="GBK" ?>

<CMS>

<eb>

<pub>

<TransCode>PAYSLIPS</TransCode>

<CIS>24477500-1AAAAA</CIS>

<BankCode>102</BankCode>

<ID>SuZhouYQHL.y.1102</ID>

<TranDate>20190302</TranDate>

<TranTime>115610816</TranTime>

<fSeqno>190302115669C4@PSP</fSeqno>

<RetCode>0</RetCode>

<RetMsg>工资单文件提交成功!</RetMsg>

</pub>

<out>

<SerialNo>20190302000333221145</SerialNo>

</out>

</eb>

</CMS>



查询电子工资单,0.0.0.1接口:

<?xml version="1.0" encoding = "GBK"?>

<CMS>

<eb>

<pub>

<TransCode>PAYSLIPQ</TransCode>

<CIS>24477500-1AAAAA</CIS>

<BankCode>102</BankCode>

<ID>SuZhouYQHL.y.1102</ID>

<TranDate>20190302</TranDate>

<TranTime>121547111</TranTime>

<fSeqno>1903021215R9HB@PSP</fSeqno>

</pub>

<in>

<StartDate>20190302</StartDate>

<EndDate>20190302</EndDate>

<BeginTime></BeginTime>

<EndTime></EndTime>

<IndexNo></IndexNo>

<ReqReserved1></ReqReserved1>

<ReqReserved2></ReqReserved2>

</in>

</eb>

</CMS>


返回信息:

<?xml  version="1.0" encoding="GBK" ?>

<CMS>

<eb>

<pub>

<TransCode>PAYSLIPQ</TransCode>

<CIS>24477500-1AAAAA</CIS>

<BankCode>102</BankCode>

<ID>SuZhouYQHL.y.1102</ID>

<TranDate>20190302</TranDate>

<TranTime>121547111</TranTime>

<fSeqno>1903021215R9HB@PSP</fSeqno>

<RetCode>0</RetCode>

<RetMsg>工资单文件查询成功!</RetMsg>

</pub>

<out>

<RowAccount>1</RowAccount>

<PageNum>1</PageNum>

<RepReserved1></RepReserved1>

<RepReserved2></RepReserved2>

<rd>

<OptDate>20190302</OptDate>

<SerialNo>20190302000333221145</SerialNo>

<GroupName>江苏苏州分行电子银行测试总部</GroupName>

<TolIncome>642000</TolIncome>

<TolNum>1</TolNum>

<SubmitID>SuZhouYQHL.y.1102</SubmitID>

<Status>0</Status>

<Record1></Record1>

<Record2></Record2>

</rd>

</out>

</eb>

</CMS>


原本以为很快就能在手机银行上查到工资单信息,但略有失望,当天没有查到。第二天,手机银行和网上银行都显示了这笔工资单信息:


但(截止上午10点30分)融e联上却没有收到对应的工资单信息推送。查询以往的工资单,融e联差不多上午8点左右收到:

至于删除工资单,也有对应的接口(0.0.0.1版本,PAYSLIPD),工资单流水号SerialNo作为关键信息,XML报文不再赘述。


和企业网银上传工资单方式略微比较一下:

1、企业网银上传工资单,个人网银和手机银行应该是当天就能查到,融e联T+1接收;

银企互联提交,个人网银、手机银行T+1能查到,融e联T+2日才收到消息。


2、自定义项目,企业网银上传的话,个人网银和手机银行查不到自定义项目信息,融e联推送有该信息;

银企互联方式,个人网银和手机银行都能查到自定义项目。

以上是关于XML报文:电子工资单的主要内容,如果未能解决你的问题,请参考以下文章

php如何解析多级xml报文?

Java对象转xml报文和xml报文转Java对象帮助类

利用sed将xml报文转换为分隔符形式报文

Velocity组装Xml报文

java怎么解析文本文件中的soap报文

解析xml报文,xml与map互转