2024年3月9日发(作者:)
POST /itx/itxsvc/param HTTP/1.1<0DH><0AH>
HOST: 127.0.0.1:9080<0DH><0AH>
Accept: */*<0DH><0AH>
Accept-Language: zh-cn<0DH><0AH>
User-Agent: XAgent<0DH><0AH>
Connection: Keep-Alive<0DH><0AH>
Content-Type: application/x-www-form-urlencoded<0DH><0AH>
Content-Length: 929<0DH><0AH>
<0DH><0AH>
requestMessage=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CTXLife%3E%3CUser
AuthRequest%3E%3CUserLoginName%3Echangzhou%3C%2FUserLoginName%3E%3CUserPswd%3E%3CPswd%3Epass
word%3C%2FPswd%3E%3C%2FUserPswd%3E%3C%2FUserAuthRequest%3E%3CTXLifeRequest%3E%3CTransRefGUID
%3E%3C%2FTransRefGUID%3E%3CTransType+tc%3D%22208%22%3E%E8%B4%A6%E5%8D%95%E4%BF%A1%
E6%81%AF%E6%9F%A5%E8%AF%A2%3C%2FTransType%3E%3CTransExeDate%3E2012-09-12%3C%2FTransExeDate%3
E%3CTransExeTime%3E09%3A38%3A04%3C%2FTransExeTime%3E%3COLifE%3E%3CHolding+id%3D%22Holding_1%
22%3E%3CPolicy%3E%3CApplicationInfo%3E%3CHOAppFormNumber%3E1234567890%3C%2FHOAppFormNumber%3
E%3C%2FApplicationInfo%3E%3C%2FPolicy%3E%3C%2FHolding%3E%3C%2FOLifE%3E%3COLifEExtension+Vend
orCode%3D%221%22%3E%3CPartnerCode%3ECZ%3C%2FPartnerCode%3E%3C%2FOLifEExtension%3E%3C%2FTXLif
eRequest%3E%3C%2FTXLife%3E&transType=208&tradingPartner=CZ&documentProtocol=CPIC_ECOM&bytesL
ength=591
其中<0DH><0AH>实际是换行符(有ComView程序为了显示,自动将回车换行转成的<0DH><0AH>的。)
应答的HTTP报文格式如下:
HTTP/1.1 200 OK<0DH><0AH>
Date: Wed, 12 Sep 2012 09:40:45 CST<0DH><0AH>
Server: XServer<0DH><0AH>
Content-Type: text/html<0DH><0AH>
Content-Length: 2380<0DH><0AH>
<0DH><0AH>
tc="208"/> Result> Received id="Holding_1"> dalPremAmt>20 ApplicationInfo> <81H> tc="1">?94H>?/Gender> id="Phone_1"> 佃?9DH> id="Party_2"> tc="10"><81H> tc="1">?94H>?/Gender> id="Address_1"> 渤璺?/Line1> tc="2">Business id="Phone_2"> tc="1">Home id="Phone_3"> tc="12">Mobile OriginatingObjectID="Holding_1" RelatedObjectID="Party_1" id="Relation_2"> tc="4">Holding tc="6">Party tc="8">Owner RelatedObjectID="Party_2" id="Relation_3"> tc="4">Holding tc="6">Party tc="32">Insured RelatedObjectID="Party_2" id="Relation_4"> tc="6">Party tc="6">Party tc="1">Spouse ode>
为了测试HTTP报文通信,我们准备如下:
1. 启动.并设置9080端口为监听端口


发布评论