shell模拟调用命令

####################################文件传输##########################################

putbatchdata 30.5.21.80 1600 /wls/tmpfile/batdata lylx_2019042511037810072718512078098.flv
getbatchdata 30.5.21.80 1600 /wls/tmpfile/batdata lylx_2019042511037810072718512078098.flv

测试文件传输transmit.etc脚本

下载

ksh -x /wls/otherapps/pafront/etc/transmit.etc special /wls/tmpfile/batdata 105584063000046_RPY_20191129_105201911298870.txt get YLTMS_BIS_SZCCB N
##上传
ksh -x /wls/otherapps/pafront/etc/transmit.etc special /wls/tmpfile/batdata CMS_B0006_900000000013_307201812266034_2.txt put CAIWUYUN_PAP_JSCH N
ksh -x /wls/otherapps/bisinternetbank/etc/transmit.etc special /nfsc/bis_ifront_vol1/tmpfile/batdata 016082600083852_D1_20190528150050.TXT put PUF-FPS_KFT N
##sftp模拟
ksh /wls/otherapps/bisinternetbank/etc/transmit.etc sftp /wls/tmpfile/batdata 021241_YSQ_20180207.txt get 120.55.183.32 pinganpuhui kxal!001=UKP ./021241/data N
ksh /wls/otherapps/bisinternetbank/etc/transmit.etc sftp /wls/tmpfile/batdata 021241_YSQ_20180207.txt get sftp.yqb.com pinganpuhui kxal!001=UKP ./021241/data N

ksh /wls/otherapps/bisinternetbank/etc/transmit.etc sftp /nfsc/bis_ifront_vol1/tmpfile/batdata 900001442451_TC_01_20190627_001.txt get sftp.yqb.com CAIKU_1442451_PRD R/Tqbdb2GjQenj5hf+MvAQ== ./out Y

加密

ksh -x /wls/otherapps/pafront/etc/encryptFile.etc /wls/tmpfile/batdata/TKYBT_FSS_20190107.txt.bisenc /wls/tmpfile/batdata/TKYBT_FSS_20190107.txt suTExXWyRmZEM2pWrV5pSg== decrypt
##建行文件同步
ksh /wls/otherapps/pafront/etc/transmit.etc special /home/ap/fserver2/rcv RcnclFile_20181201_010005_110000000_001.xml get ccb_rcv_syn
ksh -x /wls/otherapps/pafront/etc/transmit.etc special /wls/tmpfile/batdata lylx_2018092611037810072718512938669.flv get ccbybt_lylx N
ksh -x /wls/otherapps/bisinternetbank/etc/transmit.etc special /nfsc/bis_ifront_vol1/tmpfile/batdata 10020389Fundflow20190601.csv get WXQYFKDZ_PCIS N
ksh -x /wls/otherapps/bisinternetbank/etc/transmit.etc special /nfsc/bis_ifront_vol1/tmpfile/batdata 1219233501Fundflow20190601.csv get WDCMSQQ_NEW N

/nfsc/bis_ifront_vol1/tmpfile/batdata/10020389Fundflow20190601.flv
/nfsc/bis_ifront_vol1/tmpfile/batdata/1219233501Fundflow20190601.flv

sftp手工登录

默认端口

sftp bishm_test1@172.16.2.60
pinganpuhui.12356
##指定端口密码
sftp -oPort=22 -oPassword=pinganpuhui.12356 -S /wls/otherapps/bisinternetbank/bin/ssh_i386 -b /wls/otherapps/bisinternetbank/tmp/autosftp.3761 pinganpuhui@120.55.183.32 2>/dev/null > /wls/otherapps/applogs/bisinternetbank/ftp3761.log
sftp -oPort=9992 -oPassword=Zhxt!123 -S /wls/otherapps/pafront/bin/ssh_i386 -b /wls/otherapps/pafront/tmp/autosftp.16620 paph@192.168.255.5 > /wls/otherapps/applogs/pafront/sftp16620.log 2>&1
sftp -oPort=22 -oPassword=cmbsftp -S /wls/otherapps/pafront/bin/ssh_i386 -b /wls/otherapps/pafront/tmp/autosftp.22186 cmbsftp@127.0.0.1 > /wls/otherapps/applogs/pafront/sftp22186.log 2>&1

指定私钥

上传

sftp -oIdentityFile=/wls/otherapps/bisinternetbank/cert/bis4hsbcsftp_rsa/bis4hsbc_rsa_stg_20190415 -oPort=10022 ftvu0049@203.112.89.109
lcd /nfsc/bis_ifront_vol1/tmpfile/batdata
-put GWZZXHSBC20190417C88
less /nfsc/bis_ifront_vol1/tmpfile/batdata/GWZZXHSBC20190417C88

下载

sftp -oIdentityFile=/wls/otherapps/bisinternetbank/cert/bis4hsbcsftp_rsa/bis4hsbc_rsa_stg_20190415 -oPort=10022 ftvu0050@203.112.89.109
sftp> cd ./happy/input
sftp> lcd /wls/tmpfile/batdata
sftp> -get HAPPY-20190329183633742697546-Contract20190404.tar
Fetching /wls/paftp/cmbsftp/happy/input/HAPPY-20190329183633742697546-Contract20190404.tar to HAPPY-20190329183633742697546-Contract20190404.tar
sftp> bye

执行java jar包

/wls/deployop/bin/jdk1.8.0_201/bin/java -cp /wls/otherapps/pafront/lib/ -jar /wls/otherapps/pafront/lib/SftpClient.jar bishm_test1@172.16.2.60 /nfsc/bis_front_sh_vol1_stg/tmpfile/batdata /in get CMS_B0006_900000000013_307201812134920_4.txt.rpy > currentPID.log 2>&1
###上海测试前置机
/wls/deployop/bin/jrockit_160_14_R27.6.5-32_4PA/bin/java -jar /wls/otherapps/pafront/lib/SftpClient.jar tms@172.16.129.4 "HI#UG$&Dssyu" /wls/tmpfile/bankacct ./tms/check/201904 get ZZ_PAJKT307201806043990_20180607110000.rpy

java -cp lib/* -jar SftpClient.jar bishm_test1@172.16.2.60 password /nfsc/bis_front_sh_vol1_stg/tmpfile/batdata /in get CMS_B0006_900000000013_307201812134920_4.txt.rpy
java -cp D:\Users\CAOPENGPENG762\Desktop\temp\lib*.jar -jar SftpClient.jar bishm_test1@172.16.2.60 password /nfsc/bis_front_sh_vol1_stg/tmpfile/batdata /in get CMS_B0006_900000000013_307201812134920_4.txt.rpy
java -classpath D:\Users\CAOPENGPENG762\Desktop\temp\lib*.jar -jar SftpClient.jar bishm_test1@172.16.2.60 password /nfsc/bis_front_sh_vol1_stg/tmpfile/batdata /in get CMS_B0006_900000000013_307201812134920_4.txt.rpy

32jdk1.6测试上海专线前置机
/wls/deployop/bin/jrockit_160_14_R27.6.5-32_4PA/bin/java -jar /wls/otherapps/pafront/lib/SftpClient.jar bishm_test1@172.16.2.60 bishm_test1 /nfsc/bis_front_sh_vol1_stg/tmpfile/batdata /out get CMS_B0006_900000000013_307201812266034_2.txt.rpy
64jdk1.8测试公网前置机
/wls/deployop/bin/jdk1.8.0_60/bin/java -jar /wls/otherapps/bisinternetbank/lib/SftpClient.jar bishm_test1@172.16.2.60 bishm_test1 /nfsc/bis_front_sh_vol1_stg/tmpfile/batdata /out get CMS_B0006_900000000013_307201812266034_2.txt.rpy

文件下载接口

调用微信对账文件接口:

ksh -x $WORKDIR/etc/downloadWeChatBillAll.etc /nfsc/bis_ifront_vol1/tmpfile/batdata WEIXIN_JKX_1381027002_20190129 https://api.mch.weixin.qq.com/pay/downloadbill wxc9944db808e418f4 1381027002 20190129 4bee4a2f8049ece1508c3725b0fa325d

wget -O /nfsc/bis_ifront_vol1/tmpfile/batdata/WEIXIN_JKX_1381027002_20190129 -q --no-check-certificate https://api.mch.weixin.qq.com/pay/downloadbill --post-data="<xml><appid>wxc9944db808e418f4</appid><bill_date>20190129</bill_date><bill_type>ALL</bill_type><mch_id>1381027002</mch_id><nonce_str>201943301548841391</nonce_str><sign>89A9A12624578C4D8235923CD481F8AE</sign></xml>"
##调用socket服务
ksh -x /wls/otherapps/pafront/etc/transmit.etc tcpip /wls/tmpfile/batdata lylx_2018092611037810072718512938669.flv get 30.5.21.80 1600

SFTP java客户端上传文件

/wls/deployop/bin/jdk1.8.0_60/bin/java -jar /wls/otherapps/bisinternetbank/lib/SftpClientWithSH4HSBC.jar ftvu0050@203.112.89.109:10022 -identityFilePath=/wls/otherapps/bisinternetbank/cert/bis4hsbcsftp_rsa/bis4hsbc_rsa_stg_20190415 /wls/tmpfile/batdata ./Inbox get ConnectivityTest.TXT 60 paic1234
##SFTP java客户端下载文件
/wls/deployop/bin/jdk1.8.0_60/bin/java -jar /wls/otherapps/bisinternetbank/lib/SftpClientWithSH4HSBC.jar ftvu0049@203.112.89.109:10022 -identityFilePath=/wls/otherapps/bisinternetbank/cert/bis4hsbcsftp_rsa/bis4hsbc_rsa_stg_20190415 /wls/tmpfile/batdata ./Inbox put ConnectivityTest.TXT 60 paic1234

ssh执行私钥登录

ssh -i $WORKDIR/cert/bis4hsbcsftp_rsa/bis4hsbc_rsa_stg_20190415 -p 10022 ftvu0050@203.112.89.109

wget只能通过域名访问,专线前置机不能解析域名绑定host

wget --debug --output-document=/wls/tmpfile/batdata/PACK1500010250580730758402_202003206869.rpy --post-file=/wls/tmpfile/batdata/PACK1500010250580730758402_202003206869.rpy.rsp --header="Host:goldpay-new.st.anhouse.com.cn" "http://116.247.112.189/pay-api/v1/api/bis/receive?filename=PACK1500010250580730758402_202003206869.rpy"

####################################报文模拟##########################################

4.发送http请求
4.1wget
wget -d --output-document="ccbnew.rsp" --post-file="file.txt" "http://127.0.0.1:2800"

4.2 curl
4.2.1
curl https://test-mapi.stg.1qianbao.com:443/ffastpay -X POST -d "version=1.0.0&charset=GBK&signMethod=SHA-256&signature=07164095e266a3ba2a58badc6c7266b307b081b58cf193d68a2898ec5d2a3784&transType=050&backEndUrl=&bankEnc=DEAB54E37D47DDE8E58ADE1CAB92222DF95DBB80940F6587&bankShort=PAB&customerIdNo=441481199302170000&customerIdType=I&customerName=I&telephone=13100000000&merchantId=900000113320&merchantSeqNo=FTS2cvvf5g23&acctType=D&PAFMember=0&customerPAFId="

curl http://rmb.fat.qa.pab.com.cn/api/brop-peps-pay.nsp -X POST -H 'x-g-consumerid: 1117' -H 'x-g-providerid: 280834' -d "{"channel":1117,"accessToken":5BC186677769499AB7D39C9B01907A16,"method":brop-peps-pay.nsp,"channelId":BROP-NBITP,"channelKey":1CB0DFD615,"charset":utf-8,{"limit": {"deviceType":pc,"verifyType":opt,},"order": {["orderAmt":23.03,"merOrderNo":abcfghh,"requestTime":2020-03-09 15:17:12,"notifyType":syn,"notifyUrl":http://.127.0.0.1]},"payInfoList": {["acctNo":6221500200001526236,"acctType":1,"amount":23.03,"periodNum":1]},"user": {"becifNo":supervip0001}},"merId":CX002,"remark":3213,"requestTime":2020-03-09 15:17:12,"version":2.0}"

https://openapi.alipay.com/gateway.do?timestamp=2013-01-01 08:08:08&method=alipay.data.dataservice.bill.downloadurl.query&app_id=15168&sign_type=RSA2&sign=ERITJKEIJKJHKKKKKKKHJEREEEEEEEEEEE&version=1.0&charset=GBK&biz_content={"bill_date":"2019-10-31","bill_type":"trade"}

调用平安银行接入网关:指定header

curl -v 'http://rmb.fat.qa.pab.com.cn/api/brop-peps-merchant.gw' -X POST -H 'x-g-consumerid: 1117' -H 'Content-Type: application/json' -H 'Accept-Encoding: deflate' -H 'x-g-providerid: 280834' -H 'Host: rmb.fat.qa.pab.com.cn:80' --data "{
"channel": "1117",
"accessToken": "5BC186677769499AB7D39C9B01907A16",
"method": "brop-peps-pay.nsp",
"channelId": "BROP-NBITP",
"channelKey": "1CB0DFD615",
"charset": "utf-8",
"limit": {
"deviceType": "pc",
"verifyType": "opt"
},
"order": [
{
"orderAmt": "23.03",
"merOrderNo": "abcfghh",
"requestTime": "2020-03-09 15:17:12",
"notifyType": "syn",
"notifyUrl": "http://.127.0.0.1"
}
],
"payInfoList": [
{
"acctNo": "6221500200001526236",
"acctType": "1",
"amount": "23.03",
"periodNum": "1"
}
],
"user": {
"becifNo": "supervip0001"
},
"merId": "CX002",
"remark": "3213",
"requestTime": "2020-03-09 15:17:12",
"version": "2.0"
}"

curl -v 'http://rmb.fat.qa.pab.com.cn/api/brop-peps-merchant.gw' -X POST -H 'x-g-consumerid: 1117' -H 'Content-Type: application/json' -H 'Accept-Encoding: deflate' -H 'x-g-providerid: 280834' -H 'Host: rmb.fat.qa.pab.com.cn:80' --data '{"channel":"1117","accessToken":"5BC186677769499AB7D39C9B01907A16","method":"brop-peps-pay.nsp","channelId":"BROP-NBITP","channelKey":"1CB0DFD615","charset":"utf-8","limit": {"deviceType":"pc","verifyType":"opt"},"order": [{"orderAmt":"23.03","merOrderNo":"abcfghh","requestTime":"2020-03-09 15:17:12","notifyType":"syn","notifyUrl":"http://.127.0.0.1"}],"payInfoList": [{"acctNo":"6221500200001526236","acctType":"1","amount":"23.03","periodNum":"1"}],"user": {"becifNo":"supervip0001"},"merId":"CX002","remark":"3213","requestTime":"2020-03-09 15:17:12","version":"2.0"}'

curl -v 'http://rmb.fat.qa.pab.com.cn/api/brop-peps-merchant.gw' -X POST -H 'x-g-consumerid: 1117' -H 'Content-Type: application/json' -H 'Accept-Encoding: deflate' -H 'x-g-providerid: 280834' -H 'Host: rmb.fat.qa.pab.com.cn' --data '{"channel":"1117","accessToken":"5BC186677769499AB7D39C9B01907A16","method":"brop-peps-pay.nsp","channelId":"BROP-NBITP","channelKey":"1CB0DFD615","charset":"utf-8","merOrderNo":"abcfghh","merId":"CX002","remark":"3213","requestTime":"2020-03-09 15:17:12","version":"2.0"}'

curl -v 'http://rmb.fat.qa.pab.com.cn/api/brop-peps-merchant.gw' -X POST -H 'x-g-consumerid: 1117' -H 'Content-Type: application/json' -H 'Accept-Encoding: deflate' -H 'x-g-providerid: 280834' -H 'Host: rmb.fat.qa.pab.com.cn:80' --data '{"channel":"1117","accessToken":"5BC186677769499AB7D39C9B01907A16","method":"brop-peps-pay.nsp","channelId":"BROP-NBITP","channelKey":"1CB0DFD615","charset":"utf-8","limit": {"deviceType":"pc","verifyType":"opt"},"order": [{"orderAmt":"23.03","merOrderNo":"abcfghh","requestTime":"2020-03-09 15:17:12","notifyType":"syn","notifyUrl":"http://.127.0.0.1"}],"payInfoList": [{"acctNo":"6221500200001528888","acctType":"1","amount":"23.03","periodNum":"1"}],"user": {"becifNo":"YINSHOUDIANXIAO"},"merId":"CX002","remark":"3213","requestTime":"2020-03-09 15:17:12","version":"2.0"}'

4.2.2
curl -d "SEC_ERROR_CODE:000000000000
SEC_IS_MAC:0
SEC_IS_CONTEXT:0
SEC_IS_ENC:0
SEC_ID1:105005
SEC_ID2:510005
SEC_TRACE_ID:108011rv11551169301003391
SEC_TX_CODE:P5381B241
SEC_TX_TYPE:00
SEC_LEN:2256

<tx> <tx_header> <sys_hdr_len>0</sys_hdr_len> <sys_pkg_vrsn>01</sys_pkg_vrsn> <sys_ttl_len>0</sys_ttl_len> <sys_req_sec_id>108011</sys_req_sec_id> <sys_snd_sec_id>108011</sys_snd_sec_id> <sys_tx_code>P5381B241</sys_tx_code> <sys_tx_vrsn>01</sys_tx_vrsn> <sys_tx_type>020000</sys_tx_type> <sys_reserved>0</sys_reserved> <sys_evt_trace_id>108011rv11551169301003391</sys_evt_trace_id> <sys_snd_serial_no>2000000000</sys_snd_serial_no> <sys_pkg_type>1</sys_pkg_type> <sys_msg_len>0</sys_msg_len> <sys_is_encrypted>0</sys_is_encrypted> <sys_encrypt_type>3</sys_encrypt_type> <sys_compress_type>0</sys_compress_type> <sys_emb_msg_len>0</sys_emb_msg_len> <sys_req_time>20190226162141671</sys_req_time> <sys_time_left>000300000</sys_time_left> <sys_pkg_sts_type>00</sys_pkg_sts_type> </tx_header> <tx_body> <common> <file_list_pack> <file_num>1</file_num> <file_mode>0</file_mode> <file_info> <file_name>lylx_2018092611037810072718512938669.flv</file_name> <file_path>/home/ap/fserver2/rcv</file_path> </file_info> </file_list_pack> </common> <entity> <com_entity> <inst_eng_shrtnm>CCB</inst_eng_shrtnm> <ins_co_id>010005</ins_co_id> <svpt_jrnl_no>108011rv11551169301003394</svpt_jrnl_no> <txn_itt_chnl_id>99999999000000000000000</txn_itt_chnl_id> <txn_itt_chnl_cgy_code>19999999</txn_itt_chnl_cgy_code> <ccbins_id>110000000</ccbins_id> <ccb_empid>00000000</ccb_empid> <oprgday_prd>20190226</oprgday_prd> <lng_id>zh-cn</lng_id> </com_entity> <app_entity> <svpt_jrnl_no>108011rv11537946528007473</svpt_jrnl_no> <txn_dt>20180926</txn_dt> <txn_svc_nm>A03812115</txn_svc_nm> <ins_co_jrnl_no>108011rv11537946484007471</ins_co_jrnl_no> <agnc_chnl_cd>0029</agnc_chnl_cd> <archv_ind>0</archv_ind> </app_entity> </entity> </tx_body> </tx>" http://127.0.0.1:2800

5.tcp请求1
telnet 127.0.0.1 8080
000261<txcode>0800</txcode><req><txcode>0800</txcode><merchantno>000000</merchantno><txdate>20190509</txdate><txtime>14:15:00</txtime><traceno>40000000000051650100</traceno><termid>0000000000000000000</termid></req>

--post-data "SEC_ERROR_CODE:000000000000
SEC_IS_MAC:0
SEC_IS_CONTEXT:0
SEC_IS_ENC:0
SEC_ID1:105005
SEC_ID2:510005
SEC_TRACE_ID:108011rv11551169301003391
SEC_TX_CODE:P5381B241
SEC_TX_TYPE:00
SEC_LEN:2256

<tx> <tx_header> <sys_hdr_len>0</sys_hdr_len> <sys_pkg_vrsn>01</sys_pkg_vrsn> <sys_ttl_len>0</sys_ttl_len> <sys_req_sec_id>108011</sys_req_sec_id> <sys_snd_sec_id>108011</sys_snd_sec_id> <sys_tx_code>P5381B241</sys_tx_code> <sys_tx_vrsn>01</sys_tx_vrsn> <sys_tx_type>020000</sys_tx_type> <sys_reserved>0</sys_reserved> <sys_evt_trace_id>108011rv11551169301003391</sys_evt_trace_id> <sys_snd_serial_no>2000000000</sys_snd_serial_no> <sys_pkg_type>1</sys_pkg_type> <sys_msg_len>0</sys_msg_len> <sys_is_encrypted>0</sys_is_encrypted> <sys_encrypt_type>3</sys_encrypt_type> <sys_compress_type>0</sys_compress_type> <sys_emb_msg_len>0</sys_emb_msg_len> <sys_req_time>20190226162141671</sys_req_time> <sys_time_left>000300000</sys_time_left> <sys_pkg_sts_type>00</sys_pkg_sts_type> </tx_header> <tx_body> <common> <file_list_pack> <file_num>1</file_num> <file_mode>0</file_mode> <file_info> <file_name>lylx_2018092611037810072718512938669.flv</file_name> <file_path>/home/ap/fserver2/rcv</file_path> </file_info> </file_list_pack> </common> <entity> <com_entity> <inst_eng_shrtnm>CCB</inst_eng_shrtnm> <ins_co_id>010005</ins_co_id> <svpt_jrnl_no>108011rv11551169301003394</svpt_jrnl_no> <txn_itt_chnl_id>99999999000000000000000</txn_itt_chnl_id> <txn_itt_chnl_cgy_code>19999999</txn_itt_chnl_cgy_code> <ccbins_id>110000000</ccbins_id> <ccb_empid>00000000</ccb_empid> <oprgday_prd>20190226</oprgday_prd> <lng_id>zh-cn</lng_id> </com_entity> <app_entity> <svpt_jrnl_no>108011rv11537946528007473</svpt_jrnl_no> <txn_dt>20180926</txn_dt> <txn_svc_nm>A03812115</txn_svc_nm> <ins_co_jrnl_no>108011rv11537946484007471</ins_co_jrnl_no> <agnc_chnl_cd>0029</agnc_chnl_cd> <archv_ind>0</archv_ind> </app_entity> </entity> </tx_body> </tx>" http://127.0.0.1:2800

tcp请求2
发送tcp请求:request.txt是要发送的内容, response.txt是收到的返回
exec 9<>/dev/tcp/172.16.2.113/50081
cat request.txt >&9
cat<&9 >response.txt
exec 9>&-

前置机上模拟调用BIS-MIDDLE
新模式:
curl -d "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd="http://www.w3.org/2001/XMLSchema\" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance\">soapenv:Body<ns1:testName xmlns:ns1="www.paic.com.cn\"><request><?xml version="1.0" encoding="GBK"?><TX><TX_HEADER><SYS_HDR_LEN>0</SYS_HDR_LEN><SYS_PKG_VRSN>01</SYS_PKG_VRSN><SYS_TTL_LEN>0</SYS_TTL_LEN><SYS_REQ_SEC_ID>108011</SYS_REQ_SEC_ID><SYS_SND_SEC_ID>108011</SYS_SND_SEC_ID><SYS_TX_CODE>P5381B241</SYS_TX_CODE><SYS_TX_VRSN>01</SYS_TX_VRSN><SYS_TX_TYPE>020000</SYS_TX_TYPE><SYS_RESERVED>0</SYS_RESERVED><SYS_EVT_TRACE_ID>108011rv11557198956015377</SYS_EVT_TRACE_ID><SYS_SND_SERIAL_NO>4000000000</SYS_SND_SERIAL_NO><SYS_PKG_TYPE>1</SYS_PKG_TYPE><SYS_MSG_LEN>0</SYS_MSG_LEN><SYS_IS_ENCRYPTED>0</SYS_IS_ENCRYPTED><SYS_ENCRYPT_TYPE>3</SYS_ENCRYPT_TYPE><SYS_COMPRESS_TYPE>0</SYS_COMPRESS_TYPE><SYS_EMB_MSG_LEN>0</SYS_EMB_MSG_LEN><SYS_REQ_TIME>20190507111625520</SYS_REQ_TIME><SYS_TIME_LEFT>000300000</SYS_TIME_LEFT><SYS_PKG_STS_TYPE>00</SYS_PKG_STS_TYPE></TX_HEADER><TX_BODY><COMMON><FILE_LIST_PACK><FILE_NUM>2</FILE_NUM><FILE_MODE>0</FILE_MODE><FILE_NODE/><FILE_NAME_PACK/><FILE_PATH_PACK/><FILE_INFO><FILE_NAME>lylx_2019042511037810072718512083413.flv-0</FILE_NAME><FILE_PATH>/home/ap/fserver2/rcv</FILE_PATH></FILE_INFO><FILE_INFO><FILE_NAME>lylx_2019042511037810072718512083413.flv-1</FILE_NAME><FILE_PATH>/home/ap/fserver2/rcv</FILE_PATH></FILE_INFO></FILE_LIST_PACK></COMMON><ENTITY><COM_ENTITY><Inst_Eng_ShrtNm>CCB</Inst_Eng_ShrtNm><Ins_Co_ID>010005</Ins_Co_ID><SvPt_Jrnl_No>108011rv11557198985015386</SvPt_Jrnl_No><TXN_ITT_CHNL_ID>99999999000000000000000</TXN_ITT_CHNL_ID><TXN_ITT_CHNL_CGY_CODE>99999999</TXN_ITT_CHNL_CGY_CODE><CCBIns_ID>110000000</CCBIns_ID><CCB_EmpID>00000000</CCB_EmpID><Ins_Co_Safe_Node_ID>510053</Ins_Co_Safe_Node_ID><OprgDay_Prd>20190507</OprgDay_Prd><LNG_ID>zh-cn</LNG_ID></COM_ENTITY><APP_ENTITY><SvPt_Jrnl_No>108011rv11556093697001223</SvPt_Jrnl_No><Cst_Nm></Cst_Nm><Crdt_TpCd></Crdt_TpCd><Crdt_No></Crdt_No><TXN_DT>20190425</TXN_DT><Txn_Svc_Nm>A03812115</Txn_Svc_Nm><Ins_Co_Jrnl_No>108011rv11556093688001222</Ins_Co_Jrnl_No><InsPolcy_No></InsPolcy_No><TxnAmt></TxnAmt><Agnc_Chnl_Cd>0029</Agnc_Chnl_Cd><Archv_Ind>0</Archv_Ind></APP_ENTITY></ENTITY></TX_BODY><TX_EMB></TX_EMB></TX></request>" "http://192.168.29.98:80/BisMiddleWebSrv/realTimeTransaction.do?passwd=pcisybtran&reqformat=XML&PARTNER_IDENTIFIER=172.24.244.239&UUID=ba095684-33ed-4426-822a-41932d5641b8"

老模式:
curl -d "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd="http://www.w3.org/2001/XMLSchema\" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance\">soapenv:Body<ns1:testName xmlns:ns1="www.paic.com.cn\"><request><?xml version="1.0" encoding="GBK"?><TX><TX_HEADER><SYS_HDR_LEN>0</SYS_HDR_LEN><SYS_PKG_VRSN>01</SYS_PKG_VRSN><SYS_TTL_LEN>0</SYS_TTL_LEN><SYS_REQ_SEC_ID>108011</SYS_REQ_SEC_ID><SYS_SND_SEC_ID>108011</SYS_SND_SEC_ID><SYS_TX_CODE>P5381B241</SYS_TX_CODE><SYS_TX_VRSN>01</SYS_TX_VRSN><SYS_TX_TYPE>020000</SYS_TX_TYPE><SYS_RESERVED>0</SYS_RESERVED><SYS_EVT_TRACE_ID>108011rv11557198956015377</SYS_EVT_TRACE_ID><SYS_SND_SERIAL_NO>4000000000</SYS_SND_SERIAL_NO><SYS_PKG_TYPE>1</SYS_PKG_TYPE><SYS_MSG_LEN>0</SYS_MSG_LEN><SYS_IS_ENCRYPTED>0</SYS_IS_ENCRYPTED><SYS_ENCRYPT_TYPE>3</SYS_ENCRYPT_TYPE><SYS_COMPRESS_TYPE>0</SYS_COMPRESS_TYPE><SYS_EMB_MSG_LEN>0</SYS_EMB_MSG_LEN><SYS_REQ_TIME>20190507111625520</SYS_REQ_TIME><SYS_TIME_LEFT>000300000</SYS_TIME_LEFT><SYS_PKG_STS_TYPE>00</SYS_PKG_STS_TYPE></TX_HEADER><TX_BODY><COMMON><FILE_LIST_PACK><FILE_NUM>2</FILE_NUM><FILE_MODE>0</FILE_MODE><FILE_NODE/><FILE_NAME_PACK/><FILE_PATH_PACK/><FILE_INFO><FILE_NAME>lylx_2019042511037810072718512083413.flv-0</FILE_NAME><FILE_PATH>/home/ap/fserver2/rcv</FILE_PATH></FILE_INFO><FILE_INFO><FILE_NAME>lylx_2019042511037810072718512083413.flv-1</FILE_NAME><FILE_PATH>/home/ap/fserver2/rcv</FILE_PATH></FILE_INFO></FILE_LIST_PACK></COMMON><ENTITY><COM_ENTITY><Inst_Eng_ShrtNm>CCB</Inst_Eng_ShrtNm><Ins_Co_ID>010005</Ins_Co_ID><SvPt_Jrnl_No>108011rv11557198985015386</SvPt_Jrnl_No><TXN_ITT_CHNL_ID>99999999000000000000000</TXN_ITT_CHNL_ID><TXN_ITT_CHNL_CGY_CODE>99999999</TXN_ITT_CHNL_CGY_CODE><CCBIns_ID>110000000</CCBIns_ID><CCB_EmpID>00000000</CCB_EmpID><Ins_Co_Safe_Node_ID>510053</Ins_Co_Safe_Node_ID><OprgDay_Prd>20190507</OprgDay_Prd><LNG_ID>zh-cn</LNG_ID></COM_ENTITY><APP_ENTITY><SvPt_Jrnl_No>108011rv11556093697001223</SvPt_Jrnl_No><Cst_Nm></Cst_Nm><Crdt_TpCd></Crdt_TpCd><Crdt_No></Crdt_No><TXN_DT>20190425</TXN_DT><Txn_Svc_Nm>A03812115</Txn_Svc_Nm><Ins_Co_Jrnl_No>108011rv11556093688001222</Ins_Co_Jrnl_No><InsPolcy_No></InsPolcy_No><TxnAmt></TxnAmt><Agnc_Chnl_Cd>0029</Agnc_Chnl_Cd><Archv_Ind>0</Archv_Ind></APP_ENTITY></ENTITY></TX_BODY><TX_EMB></TX_EMB></TX></request>" "http://192.168.29.98:80/BisMiddleWebSrv/RealTimeServlet?passwd=IH7jN5OVJOjp5tE/ojvUjg==&reqformat=XML&PARTNER_IDENTIFIER=172.24.244.239&UUID=ba095684-33ed-4426-822a-41932d5641b8"

===================BIS-MIDDLE调用前置机
==调用建行安全组件预处理 发送到前置机的请求报文
##########00000003-022d-48d4-8adb-b380003232191t2t3t4t5t001992new:000119PARTNER_ID=1t2t3t4t5t;SUITE_NAME=XQ;TRAN_CODE=203040;BANK_CODE=null;BK_ACCT_DATE=null;BK_ACCT_TIME=null;BK_SERIAL=null;<tx><tx_header><sys_hdr_len>0</sys_hdr_len><sys_pkg_vrsn>01</sys_pkg_vrsn><sys_ttl_len>0</sys_ttl_len><sys_req_sec_id>510053</sys_req_sec_id><sys_snd_sec_id>105005</sys_snd_sec_id><sys_tx_code>P5381B241</sys_tx_code><sys_tx_vrsn>01</sys_tx_vrsn><sys_tx_type>020000</sys_tx_type><sys_reserved>0</sys_reserved><sys_evt_trace_id>108011rv11551169301003391</sys_evt_trace_id><sys_snd_serial_no>2000000000</sys_snd_serial_no><sys_pkg_type>1</sys_pkg_type><sys_msg_len>0</sys_msg_len><sys_is_encrypted>3</sys_is_encrypted><sys_encrypt_type>3</sys_encrypt_type><sys_compress_type>0</sys_compress_type><sys_emb_msg_len>0</sys_emb_msg_len><sys_req_time>20190226162141671</sys_req_time><sys_time_left>000300000</sys_time_left><sys_pkg_sts_type>00</sys_pkg_sts_type></tx_header><tx_body><common><file_list_pack><file_num>1</file_num><file_mode>0</file_mode><file_info><file_name>lylx_2018092611037810072718512938669.flv</file_name><file_path>/home/ap/fserver2/rcv</file_path></file_info></file_list_pack></common><entity><com_entity><inst_eng_shrtnm>CCB</inst_eng_shrtnm><ins_co_id>010005</ins_co_id><svpt_jrnl_no>108011rv11551169301003394</svpt_jrnl_no><txn_itt_chnl_id>99999999000000000000000</txn_itt_chnl_id><txn_itt_chnl_cgy_code>19999999</txn_itt_chnl_cgy_code><ccbins_id>110000000</ccbins_id><ccb_empid>00000000</ccb_empid><oprgday_prd>20190226</oprgday_prd><lng_id>zh-cn</lng_id></com_entity><app_entity><svpt_jrnl_no>108011rv11537946528007473</svpt_jrnl_no><txn_dt>20180926</txn_dt><txn_svc_nm>A03812115</txn_svc_nm><ins_co_jrnl_no>108011rv11537946484007471</ins_co_jrnl_no><agnc_chnl_cd>0029</agnc_chnl_cd><archv_ind>0</archv_ind></app_entity></entity></tx_body></tx>

<machine id="898989" pretreatment&#95;dll="dll&#47;pre&#95;func&#95;tobank&#46;so" pretreatment&#95;func="pre&#95;func&#95;ccb&#95;req" special&#95;dll="dll&#47;special&#95;tobank&#46;so" special&#95;func="pre&#95;func&#95;ccb&#95;rsp"> <transmit> <transmittype>socket</transmittype> <transmithostname>openapi.alipay.com</transmithostname> <transmitport>443</transmitport> <headtype>https</headtype> </transmit> </machine>

==预处理函数验证
##########37755b10-aab1-490e-b9e0-a396b8da8f05bjagr_pcis001290new:000153PARTNER_ID=bjagr_pcis;SUITE_NAME=PCIS;TRAN_CODE=200273;BANK_CODE=99990000;BK_ACCT_DATE=20190925;BK_ACCT_TIME=17:36:08;BK_SERIAL=120190925173608991905919;
POST /AbcService.svc HTTP/1.1
Host: 103.83.44.81:83
Content-Type: text/xml; charset=utf-8
Content-Length: 930
Pragma: no-cache
SOAPAction: "http://tempuri.org/IAbcService/InsuranceSearch"

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Body<insurancesearch xmlns="http&#58;&#47;&#47;tempuri&#46;org&#47;"><insurancesearch xmlns&#58;a="http&#58;&#47;&#47;schemas&#46;datacontract&#46;org&#47;2004&#47;07&#47;AbcWcfService&#46;Entities" xmlns&#58;i="http&#58;&#47;&#47;www&#46;w3&#46;org&#47;2001&#47;XMLSchema&#45;instance"><a:AgriImpInfo i:nil="true" /><a:EffectEndDate>2018-12-08 23:59:59</insurancesearch><a:EffectStartDate>2017-12-09 00:00:00</insurancesearch><a:InsTypeCode>404<a:Password>pingan9965<a:PeasentInfoList><a:AgriImpInfo><a:AIInsuranceTypeList> <a:EngineNumber><a:VINumber><a:RegionCode> 110105018001<a:UserName>pingan

================调用建行安全组件进行加解密
//解密
ccbYbtBatch 510053 105005 RZDZ000166620190816.txt /home/ap/fserver2/rcv /wls/tmpfile/batdata get

//加密
ccbYbtBatch 510053 105005 RZDZ000166620190816.txt /wls/tmpfile/batdata /home/ap/fserver2/rcv put

================工行文件加解密
/wls/otherapps/pafront/bin/icbc_des_large_file -E /wls/otherapps/pafront/etc/YLCOTRACT4ICBC_PRD.key /wls/tmpfile/bankacct/abc.txt /wls/tmpfile/bankacct/abc.txt.des
/wls/otherapps/pafront/bin/icbc_des_large_file -D /wls/otherapps/pafront/etc/YLCOTRACT4ICBC_PRD.key /wls/tmpfile/bankacct/abc.txt.des /wls/tmpfile/bankacct/abc.txt

=============BIS-MIDDLE上模拟调用前置机,模拟外调内

curl -d "aaaaaaaaaa" -H "Content-Length:10" "http://10.36.232.132:8007/"

telnet 10.36.232.132 8007
POST / HTTP/1.1
partner: Ctrip
Accept: text/xml
Content-Type: text/xml;charset=gb2312
Content-Length: 10
ProxyGate-ClientIp: 10.2.61.25
Host: 10.36.232.132:8007
Cache-Control: max-age=259200
Connection: keep-alive

aaaaaaaaaa

全部评论

相关推荐

不愿透露姓名的神秘牛友
11-24 20:55
阿里国际 Java工程师 2.7k*16.0
程序员猪皮:没有超过3k的,不太好选。春招再看看
点赞 评论 收藏
分享
一名愚蠢的人类:多少games小鬼留下了羡慕的泪水
投递荣耀等公司10个岗位
点赞 评论 收藏
分享
头像 会员标识
11-27 17:08
已编辑
牛客_产品运营部_私域运营
腾讯 普通offer 24k~26k * 15,年包在36w~39w左右。
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务