我自己拼装好了报文,在向平台发送soap时,报了这样的错误:
Element type soapenv:Envelope must be followed by either attribute specifications+ >+ or />+ . Nested exce
而报文日志显示为
<soapenv:Envelope xmlns:soapenv=xxxxx>
...
</soapenv:Envelope>
在网上查到:

原因是报文内容太长,我分成好几行用ostringstream对象拼接的,我把它们改成一行以后就可以了。