我正在使用来自SmartBear的Soap UI发送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>
<request>
<request-attributes>
<message>"this & and that"</message>
</request-attributes>
</request>
</wsg:contract>
</wsg:abc>
</soapenv:Body>
</soapenv:Envelope>
响应为:“无效请求”。您能否解释如何转义&字符?谢谢。
&
转义了,但是为什么<
和>
也被转义了呢? - Wooble&amp;
? - Wooble