AnsweredAssumed Answered

How to create a virtual service that contains multipart / form-data

Question asked by ChenJY on Jan 10, 2018
Latest reply on Aug 17, 2018 by USCC_Vibhash

I need to create a virtual service HTTP protocol with multipart / form-data, I've tried using the rest data format to create a virtual service that does not recognize the parameters.

the message is as follows:
request:
POST / Tibserver / HomeReceiver HTTP / 1.1
Pragma: no-cache
Cache-Control: no-cache
lisaFrameRemoteIP: 169.254.74.117
lisaFrameRoot: true
lisaFrameID: b3ee8ca0-f137-11e7-a0e4-00e0ed2ebb32
Content-Type: multipart / form-data; boundary = - AhMMLcbyRtCwVCyAA_dIxh0rCjuNcrix
Content-Length: 1684
Host: 10.252.45.207:9081
Connection: Keep-Alive
User-Agent: Mozilla / 5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident / 5.0)

---- AhMMLcbyRtCwVCyAA_dIxh0rCjuNcrix
Content-disposition: form-data; name = "xmlhead"

<? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?> <InterBOSS> <Version> 0100 </ Version> <TestFlag> 0 </ TestFlag> <BIPType> <BIPCode> BIP2B971 < BIPCode> <ActivityCode> T2140971 </ ActivityCode> <ActionCode> 1 </ ActionCode> </ BIPType> <RoutingInfo> <OrigDomain> BOSS </ OrigDomain> <RouteType> 00 </ RouteType> <Routing> <HomeDomain> PBSS </ HomeDomain> <RouteValue> 997 </ RouteValue> </ Routing> </ RoutingInfo> <TransInfo> <SessionID> PBSS20180104181455000045207279 </ SessionID> <TransIDO> HZ20180104181455207280 </ TransIDO> <TransIDOTime> 20180104181200 </ TransIDOTime> <TransIDH> 201801041812009535293433 < / TransIDH> <TransIDHTime> 20180104181200 </ TransIDHTime> </ TransInfo> <SNReserve> <TransIDC> 2000110320180104181200811307034 </ TransIDC> <ConvID> 31843248-cbea-470f-973b-ab7a92ef19cc </ ConvID> <CutOffDay> 20180104 </ CutOffDay> <OSNTime> 20180104181200 </ OSNTime> <OSNDUNS> 2000 </ OSNDUNS> <HSNDUNS> 9970 </ HSNDUNS> <MsgSender> 2001 </ MsgSender> <MsgReceiver> 0600 </ MsgReceiver> <Priority> 93 </ Priority> <ServiceLevel > 91 </ ServiceLevel> </ SNReserve> <Response> <RspType> 0 </ R spType> <RspCode> 0000 </ RspCode> <RspDesc> ...... </ RspDesc> </ Response> </ InterBOSS>
---- AhMMLcbyRtCwVCyAA_dIxh0rCjuNcrix
Content-disposition: form-data; name = "xmlbody"

<? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?> <InterBOSS> <SvcCont> <! [CDATA [<? xml version = "1.0" encoding = "UTF-8"?> <SyncInfo> <Queryinfo> <OprNum> 2001BIP2B97020180104181455060197 </ OprNum> <QueryOprNum> 2001BIP2B96920180104154700210149 </ QueryOprNum> <Supervisor> asdad </ Supervisor> <Date> 20180104 </ Date> <Result> 01 </ Result> <Reason> < / Reason> </ Queryinfo> </ SyncInfo>]]> </ SvcCont> </ InterBOSS>
---- AhMMLcbyRtCwVCyAA_dIxh0rCjuNcrix--

response:

<?xml version="1.0" encoding="UTF-8"?>
<InterBOSS><Version>0100</Version><TestFlag>0</TestFlag><BIPType><BIPCode>BIP2B971</BIPCode><ActivityCode>T2140971</ActivityCode><ActionCode>1</ActionCode></BIPType><RoutingInfo><OrigDomain>BOSS</OrigDomain><RouteType>00</RouteType><Routing><HomeDomain>PBSS</HomeDomain><RouteValue>997</RouteValue></Routing></RoutingInfo><TransInfo><SessionID>PBSS20180104181455000045207279</SessionID><TransIDO>HZ20180104181455207280</TransIDO><TransIDOTime>20180104181200</TransIDOTime><TransIDH>GDT214097120180105081608464</TransIDH><TransIDHTime>20180105081608</TransIDHTime></TransInfo><SNReserve><TransIDC>2000110320180104181200811307034</TransIDC><ConvID>31843248-cbea-470f-973b-ab7a92ef19cc</ConvID><CutOffDay>20180104</CutOffDay><OSNTime>20180104181200</OSNTime><OSNDUNS>2000</OSNDUNS><HSNDUNS>9970</HSNDUNS><MsgSender>2001</MsgSender><MsgReceiver>2000</MsgReceiver><Priority>93</Priority><ServiceLevel>91</ServiceLevel></SNReserve><Response><RspType>0</RspType><RspCode>0000</RspCode><RspDesc>ok</RspDesc></Response><SvcCont><![CDATA[]]></SvcCont></InterBOSS>

Outcomes