This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes WebLogic returns funny characters in XML response? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "WebLogic returns funny characters in XML response?" Watch "WebLogic returns funny characters in XML response?" New topic
Author

WebLogic returns funny characters in XML response?

Chris Lomvardias
Greenhorn

Joined: Oct 20, 2002
Posts: 1
I have an application developed on Tomcat that includes a servlet that receives and XML post, processes the XML, then constructs an XML response packet (using JDOM) and flushes the response packet back to the calling process. This worked great under Tomcat, however now that I have ported it to WebLogic 6.1sp3, WebLogic appears to be adding some funny characters at the beginning and end of the XML response packet. Here's what it looks like.
00ae
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE scansresponse SYSTEM "scansresponse.dtd">
<scansresponse>
<transferresult>failure</transferresult>
</scansresponse>
0000

Any ideas on what might be causing this and how I can correct this problem? I've tried many different things and am stumped.
Thanks,
Chris
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
You may be running into a "byte order mark" - I don't know much about how to deal with it, but you can find lots of references searching on Yahoo or google.
WBB
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebLogic returns funny characters in XML response?
 
Similar Threads
Trouble hand rolling SOAP request
'Exception performing authentication' using JDBC Realm
result type xml
Apache 2 , Jboss issues
Ant and ejbjar Task