XML & Web services: Removing xml declaration from SOAP response.
Hi, I'm trying to remove the xml declaration (<?xml version="1.0" encoding="UTF-8"?>) from my SOAP response. Any idea on how to do that? Right now, I have got a response handler class which intercepts the MessageContext object. I'm trying to set the 'WRITE_XML_DECLARATION' property of the Message contained inside to false. But with no luck. I can still find the xml declaration in the returned SOAP xml. Please advice on what could be amiss. Thanks in advance.
- Posted by: jaki j
- Posted on: October 11 2010 04:23 EDT