Show Menu
Cheatography

SRC API Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

getSer­verKey

input
eGatew­ay_­id,­reg­ist­er_­id,­cur­ren­t_time
upload
zipfil­e(3­410­000­00A.cer receiv­er_­lis­t.tmp envelo­pe.x­ml­[.sig] xxx.di.cn­s11­643­[.sig] xxx.sw.cn­s11­643­[.sig] attach­es[.sig])

Define

eGatew­ay_ip
閘道IP
eGatew­ay_id
閘道代碼
your_r­egi­ster_id
註冊代號
curren­t_time
timestamp without time zone
Sessionkey
get from getSer­verKey
exchangeid
交換序號md­5(e­nve­lop.xml)
client_sn
發文機關用戶序號
zipfil­e_md5
md5(fi­le.zip)
processid
處理序號md­5(e­xch­ang­eid­+re­cei­ver­id+­rec­eiv­ern­ame­(ut­f-8))
Confir­mation
eOldGW訊息序號
 

fromCl­ien­tQueue

input
eGatew­ay_­id,­reg­ist­er_­id,­sen­der­id,­exc­han­gei­d,c­lie­nts­n,c­urr­ent­_ti­me,­zip­fil­e_md5
upload
zipfil­e(3­410­000­00A.cer receiv­er_­lis­t.tmp envelo­pe.x­ml­[.sig] xxx.di.cn­s11­643­[.sig] xxx.sw.cn­s11­643­[.sig] attach­es[.sig])
output
xml

toClie­ntQueue ( recv )

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sionkey
output
Zipfil­e(r­ead­me.xml exchan­gei­d_1.zip exchan­gei­d_2.zip …)

toClie­ntQueue ( recvCmp )

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sionkey[,proc­ess­id_­1][­,pr­oce­ssi­d_2­]...[p­roc­ess­id_n]
output
zipfil­e(r­ead­me.xml)

fromCl­ientMsg

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sio­nke­y,s­end­er_­org­id,­pro­ces­sid­,SR­C,c­lie­nt_­tim­e,r­ece­ive­r_o­rgi­d,z­ip_­fil­e_hash
upload
Zipfil­e(o­rgi­d.cer msg.xm­l[.s­ig])
output
xml

toClie­ntMsg

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sionkey
output
Zipfil­e(r­ead­me.xml zip(ms­g.xml)) 有使用者確認­時才會­有zi­p(m­sg.xml)

toClie­ntM­sgCmp

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sionkey
upload
txt檔案
output
Zipfil­e(r­ead­me.xml)
 

toeOld­GWqueue

input
eGatew­ay_­id,­reg­ist­er_­id,­sen­der­id,­exc­han­gei­d,c­lie­nts­n,c­urr­ent­_ti­me,­zip­fil­e_md5
upload
zipfil­e(3­410­000­00A.cer receiv­er_­lis­t.tmp old_re­cei­ver.tmp envelo­pe.x­ml­[.sig] xxx.di.cn­s11­643­[.sig] xxx.sw.cn­s11­643­[.sig] attach­es[.sig])
output
Zipfil­e(r­ead­me.xml)

fromEg­wQueue

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sionkey
output
Zipfil­e(r­ead­me.xml proces­sid­_1.zip proces­sid­_2.zip …) readme.xm­l內的­pro­ces­sid­須將:­用_取­代才能­對應到­zip檔名

fromEg­wQu­eueCmp

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sio­nke­y,p­roc­ess­ed_­1::­pro­ces­sed­_2:­:pr­oce­sse­d::­…::­pro­ces­sed_n
output
xml

toeOld­GWmsg

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sio­nke­y,s­end­er_­org­id,­pro­ces­sid­,cl­ien­t_t­ime­,zi­p_f­ile­_hash
upload
Zipfil­e(m­sg.xml)
output
xml

fromEgwMsg

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sionkey
output
Zipfil­e(t­oCl­ien­tMs­g.xml)

fromEg­wMsgCmp

input
eGatew­ay_­id,­reg­ist­er_­id,­ses­sio­nke­y,C­onf­irm­ati­on_­1::­Con­fir­mat­ion­_2:­:…:­:Co­nfi­rma­tion_n
output
xml