我正在使用下面的 XML,我需要在 XML 中为下面的标签设置 10 次值。
- 投票号码
而且我还想用 10 个更新的新 PolNumber 打印新的 XML。我应该在这个 SOAP XML 的特性文件中写什么?
我已经写了下面的代码,但是新更新的值没有被打印出来。
- def Info = read('data.xml')
- 设置信息/策略 [@CarrierPartyID='Party_Carrier']/PolNumber = 'P123456'
- 打印信息
XML:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.iwa.dtcc.com/" xmlns:ns="http://ACORD.org/Standards/Life/2">
<soapenv:Header>
<ser:MessageHeader>
<MessageName>VI</MessageName>
<RouteInfo>
<FromParticipant>0057</FromParticipant>
<ToParticipant>4516</ToParticipant>
<Sender>0057</Sender>
<TransmissionDate>2020-10-08</TransmissionDate>
<TransmissionTime>13:32:35</TransmissionTime>
</RouteInfo>
</ser:MessageHeader>
</soapenv:Header>
<soapenv:Body>
<ser:processValueInquiry xmlns="http://service.iwa.dtcc.com/">
<VI_Msg xmlns="http://ACORD.org/Standards/Life/2">
<TXLife xmlns="http://ACORD.org/Standards/Life/2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<TXLifeRequest PrimaryObjectID="AnnuityOrder27995">
<TransRefGUID>SOAPUI-21207-2019030611</TransRefGUID>
<TransType tc="212">212</TransType>
<TransSubType tc="21207">21207</TransSubType>
<TransExeDate>2019-06-06</TransExeDate>
<TransExeTime>13:32:35</TransExeTime>
<PendingResponseOK tc="0">False</PendingResponseOK>
<OLifE>
<Holding id="AnnuityOrder27995">
<HoldingTypeCode tc="2">Policy</HoldingTypeCode>
<DistributorClientAcctNum>8888</DistributorClientAcctNum>
<Policy CarrierPartyID="Party_Carrier">
<PolNumber>A235689</PolNumber>
<CarrierCode>5544</CarrierCode>
<CusipNum>5555</CusipNum>
</Policy>
</Holding>
</OLifE>
</TXLifeRequest>
</TXLife>
</VI_Msg>
</ser:processValueInquiry>
</soapenv:Body>
</soapenv:Envelope>