【soapui调webservice接口报错Found character data inside an array element while deserializing<】

soapui调webservice接口报错

调用

<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:urn="urn:DefaultNamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body><urn:methodName soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <Body xsi:type="xsd:string"></Body>
         <file xsi:type="urn:ArrayOf_soapenc_base64" soapenc:arrayType="xsd:byte[][]"> </file>
		<fileName xsi:type="urn:ArrayOf_xsd_string" soapenc:arrayType="xsd:string[]">
          test122.xml 
         </fileName>
      </urn:methodName>
   </soapenv:Body>
</soapenv:Envelope>

返回报错

<?xml version="1.0" encoding="UTF-8"?>
<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>
  <soapenv:Fault>
   <faultcode>soapenv:Server.generalException</faultcode>
   <faultstring>org.xml.sax.SAXException: Found character data inside an array element while deserializing</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

对方接口接收文件是byte[][], 以base64方式传递,在报文字段传的是base64,超过了报文长度,报错了。
字段传递的短字符就没事。
目前不知道有什么解决方案,只能沟通以另一种方式传递附件文件

  • 7
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值