4
我正在使用Spring WS 1.5.8版。我的回答是這樣的:強制Spring Web服務將xsd命名空間添加到響應中
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
...
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
然而,我的客戶(其中我與整合)要求,我會爲了增加更多的命名空間declerations的解析成功:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
...
</soapenv:Body>
</soapenv:Envelope>
我該怎麼辦它?
謝謝快速反應的skaffman – 2010-05-11 19:46:17