Hi,

I am using Spring WebService 3.0 and response is looking like this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>

I need response with XML declaration:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>

In the Request i can see XML declaration but in the resposne XML declaration part is omiited.

Can anyone help what configuration is required for this ?

In the response omitXMLDecl is coming as true and in the Request it is false. This may be the probabale reason but we have not done any configuration for the omitXMLDecl.

In the Interceptor, in the handleResponse method even after setting below property XML declaration is not added .
messageContext.setProperty(SOAPMessage.WRITE_XML_D ECLARATION, "true");

This is urgent, any help would be appriciated.

Thanks
Savita