小编akc*_*akc的帖子

如何在soap UI中转义&符号(&)

我正在使用soap UI(来自smartbear)以xml格式发送soap请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsg="http://wsg.hpos.om.hp.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <wsg:abc>
      <wsg:contract>
         &lt;request&gt;

         &lt;request-attributes&gt;
            &lt;message&gt;"this &amp; and that"&lt;/message&gt;                
         &lt;/request-attributes&gt;             
         &lt;/request&gt;             
         </wsg:contract>
      </wsg:abc>
   </soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)

并且响应是:无效的请求.你能否说明如何逃避&?谢谢

xml soap soapui xml-parsing

8
推荐指数
1
解决办法
3万
查看次数

标签 统计

soap ×1

soapui ×1

xml ×1

xml-parsing ×1