从SOAP UI发送byte []数据

我有一个SOAP API端点,该端点接收byte[]数据。现在,我想从SOAP UI进行测试。但是我真的陷入了困境,该如何通过soap ui发送byte[]数据?我尝试使用base64编码的字符串,但是没有预期的输出(我正在发送签名/公钥数据用于验证目的,因此验证不起作用,这意味着我发送的数据不正确)。 我做错了什么?还是应该怎么做?
有什么建议吗?

shiyan5168 回答:从SOAP UI发送byte []数据

这应该有效。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:x-="http://xml.apache.org/xml-soap" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
.....

    <x-:item>
    <x-:key>content</x-:key>
    <x-:value xsi:type="xsd:base64Binary">cid:1234567890</x-:value>
    </x-:item>

......
</soapenv:Body>
</soapenv:Envelope>
本文链接:https://www.f2er.com/3168920.html

大家都在问