0
产品供应商正在使用肥皂消息调用我的Web服务,该消息在语法方面不正确。原因是soap消息在载有销售数据的有效载荷之前有一个多余的xml声明。这个接口应该每天传输超过500K次交易。撕掉第二个xml声明时我有什么选择,而不会大幅度降低性能? 我不能应用下面的东西,因为在这种情况下,XML声明不是在开始。除了xml语法不正确。从soap有效负载中删除额外的xml声明
<xsl:output method="xml" omit-xml-declaration="yes" />
SOAP消息
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:postTransaction xmlns:ns2="http://v1.ws.abc.dtv/">
<rawLogString>
<?xml version="1.0" encoding="UTF-8"?> <!--unwanted xml declaration-->
<Log><!--elements that carry sale data-->
</Log>
</rawLogString>
</ns2:postTransaction>
</S:Body>
</S:Envelope>
差不多我的想法,但只是想之前确认我与大家伙吵架! – chemicalkt2