全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 程序人生 测试技术 工具
问答 / 问答详情

调用webservice接口时,xml节点中带有@符合时发送出去的请求变为undefined

调用webservice接口时,xml节点中带有@符合时发送出去的请求变为undefined

1.请求报文(注意看其中的email节点 <Email>6666666@qq.com</Email>):

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:htap="http://htapp.lis.sinosoft.com">

    <soapenv:Header/>

    <soapenv:Body>

        <htap:ContTransfer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

            <XMLInputString  xsi:type="xsd:string"><![CDATA[<TradeData>

<BaseInfo>

<TradeCode>GWPolicyContSave</TradeCode>

<RequestDate>2020-10-2117:11:28</RequestDate>

<ResponseDate/>

<UnderwriteTime>1</UnderwriteTime>

<SystemFlag>MP</SystemFlag>

<SourceFlag>GW</SourceFlag>

</BaseInfo>

<ContInfo>

<LCCont>

<OrderNo>OrderNo2006202008060119</OrderNo>

<PrtNo>2006202008060118</PrtNo>

<PolApplyDate>2020-10-2117:11:28</PolApplyDate>

<ManageCom>86000000</ManageCom>

<Operator>hongda</Operator>

<SellType>70</SellType>

<SaleChnl>04</SaleChnl>

<PayLocation>0</PayLocation>

<BankCode>102</BankCode>

<BankName>工商银行</BankName>

<BankAccNo>6222020409030210006</BankAccNo>

<AccName>周文涛</AccName>

<Remark/>

<NonPaymentInfo>Y</NonPaymentInfo>

<SellerName>陈9</SellerName>

<SellerCode>销售人员代码</SellerCode>

</LCCont>

<Agents>

<AgentCount>1</AgentCount>

<Agent>

<AgentCode>70000008</AgentCode>

<AgentName>TengNuo</AgentName>

<AgentCom>86000000008</AgentCom>

<AgentGroup>100000000008</AgentGroup>

<Busirate>1</Busirate>

<ManageCom>86000000</ManageCom>

</Agent>

</Agents>

<LCAppnt>

<AppntName>周付来</AppntName>

<AppntSex>0</AppntSex>

<AppntBirthday>1990-05-15</AppntBirthday>

<AppntIDType>0</AppntIDType>

<AppntIDNo>421023199005150150</AppntIDNo>

<IDTypeEndDate>2042-01-01</IDTypeEndDate>

<OccupationType>1</OccupationType>

<LCAddress>

<Province>110000</Province>

<City>370101</City>

<County>410328</County>

<PostalAddress>李家村啊111</PostalAddress>

<Mobile>17621152665</Mobile>

<Email>6666666@qq.com</Email>

</LCAddress>

<Income>30000</Income>

<IncomeSource>1</IncomeSource>

<idCardFrontImage>123</idCardFrontImage>

<idCardBackImage>456</idCardBackImage>

</LCAppnt>

<LCInsureds>

<LCInsuredCount>1</LCInsuredCount>

<LCInsured>

<Name>周来了</Name>

<Sex>1</Sex>

<Birthday>1990-05-15</Birthday>

<IDType>0</IDType>

<IDNo>350501199005150169</IDNo>

<IDTypeEndDate>2042-01-01</IDTypeEndDate>

<OccupationType>1</OccupationType>

<Stature>175</Stature>

<Avoirdupois>65</Avoirdupois>

<RelationToAppnt>33</RelationToAppnt>

<Income>3000</Income>

<IncomeSource>1</IncomeSource>

<idCardFrontImage>789</idCardFrontImage>

<idCardBackImage>333</idCardBackImage>

</LCInsured>

</LCInsureds>

<Risks>

<RiskCount>1</RiskCount>

<Risk>

<RiskSelNo>1</RiskSelNo>

<RiskCode>INA004</RiskCode>

<MainRiskCode>INA004</MainRiskCode>

<Amnt>100000.00</Amnt>

<Prem>446.00</Prem>

<AddFee>0</AddFee>

<JobAddPrem>0</JobAddPrem>

<Mult>1</Mult>

<PayIntv>12</PayIntv>

<Years>0</Years>

<InsuYearFlag>A</InsuYearFlag>

<InsuYear>80</InsuYear>

<Payendyearflag>Y</Payendyearflag>

<Payendyear>20</Payendyear>

<RnewFlag>0</RnewFlag>

<GetYear>0</GetYear>

<NeedDuty>0</NeedDuty>

<LCBnfs>

<LCBnfCount>1</LCBnfCount>

<LCBnf>

<BnfType>1</BnfType>

<BeneficiaryType>00</BeneficiaryType>

<BnfNo>1</BnfNo>

<Name>法定</Name>

<BnfGrade>1</BnfGrade>

<BnfLot>1</BnfLot>

</LCBnf>

</LCBnfs>

</Risk>

</Risks>

</ContInfo>

</TradeData>

]]></XMLInputString>

        </htap:ContTransfer>

    </soapenv:Body>

</soapenv:Envelope>

2.接收到的请求内容(email节点内容变为<Email>17621152665undefined):

<TradeData>

<BaseInfo>

<TradeCode>GWPolicyContSave</TradeCode>

<RequestDate>2020-10-2117:11:28</RequestDate>

<ResponseDate/>

<UnderwriteTime>1</UnderwriteTime>

<SystemFlag>MP</SystemFlag>

<SourceFlag>GW</SourceFlag>

</BaseInfo>

<ContInfo>

<LCCont>

<OrderNo>OrderNo2006202008060119</OrderNo>

<PrtNo>2006202008060118</PrtNo>

<PolApplyDate>2020-10-2117:11:28</PolApplyDate>

<ManageCom>86000000</ManageCom>

<Operator>hongda</Operator>

<SellType>70</SellType>

<SaleChnl>04</SaleChnl>

<PayLocation>0</PayLocation>

<BankCode>102</BankCode>

<BankName>工商银行</BankName>

<BankAccNo>6222020409030210006</BankAccNo>

<AccName>周文涛</AccName>

<Remark/>

<NonPaymentInfo>Y</NonPaymentInfo>

<SellerName>陈9</SellerName>

<SellerCode>销售人员代码</SellerCode>

</LCCont>

<Agents>

<AgentCount>1</AgentCount>

<Agent>

<AgentCode>70000008</AgentCode>

<AgentName>TengNuo</AgentName>

<AgentCom>86000000008</AgentCom>

<AgentGroup>100000000008</AgentGroup>

<Busirate>1</Busirate>

<ManageCom>86000000</ManageCom>

</Agent>

</Agents>

<LCAppnt>

<AppntName>周付来</AppntName>

<AppntSex>0</AppntSex>

<AppntBirthday>1990-05-15</AppntBirthday>

<AppntIDType>0</AppntIDType>

<AppntIDNo>421023199005150150</AppntIDNo>

<IDTypeEndDate>2042-01-01</IDTypeEndDate>

<OccupationType>1</OccupationType>

<LCAddress>

<Province>110000</Province>

<City>370101</City>

<County>410328</County>

<PostalAddress>李家村啊111</PostalAddress>

<Mobile>17621152665</Mobile>

<Email>6666666undefined

</LCAddress>

<Income>30000</Income>

<IncomeSource>1</IncomeSource>

<idCardFrontImage>123</idCardFrontImage>

<idCardBackImage>456</idCardBackImage>

</LCAppnt>

<LCInsureds>

<LCInsuredCount>1</LCInsuredCount>

<LCInsured>

<Name>周来了</Name>

<Sex>1</Sex>

<Birthday>1990-05-15</Birthday>

<IDType>0</IDType>

<IDNo>350501199005150169</IDNo>

<IDTypeEndDate>2042-01-01</IDTypeEndDate>

<OccupationType>1</OccupationType>

<Stature>175</Stature>

<Avoirdupois>65</Avoirdupois>

<RelationToAppnt>33</RelationToAppnt>

<Income>3000</Income>

<IncomeSource>1</IncomeSource>

<idCardFrontImage>789</idCardFrontImage>

<idCardBackImage>333</idCardBackImage>

</LCInsured>

</LCInsureds>

<Risks>

<RiskCount>1</RiskCount>

<Risk>

<RiskSelNo>1</RiskSelNo>

<RiskCode>INA004</RiskCode>

<MainRiskCode>INA004</MainRiskCode>

<Amnt>100000.00</Amnt>

<Prem>446.00</Prem>

<AddFee>0</AddFee>

<JobAddPrem>0</JobAddPrem>

<Mult>1</Mult>

<PayIntv>12</PayIntv>

<Years>0</Years>

<InsuYearFlag>A</InsuYearFlag>

<InsuYear>80</InsuYear>

<Payendyearflag>Y</Payendyearflag>

<Payendyear>20</Payendyear>

<RnewFlag>0</RnewFlag>

<GetYear>0</GetYear>

<NeedDuty>0</NeedDuty>

<LCBnfs>

<LCBnfCount>1</LCBnfCount>

<LCBnf>

<BnfType>1</BnfType>

<BeneficiaryType>00</BeneficiaryType>

<BnfNo>1</BnfNo>

<Name>法定</Name>

<BnfGrade>1</BnfGrade>

<BnfLot>1</BnfLot>

</LCBnf>

</LCBnfs>

</Risk>

</Risks>

</ContInfo>

</TradeData>

| 0 收藏

2 个回答

此处为bug

此问题会修复波

中文版Postman,rap文档管理

撰写答案

开发者问答

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!