This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a stateless session bean method that returns well-formed XML. This method is then turned into a Web Services method using Axis. Using an Java Axis client, there is no problem processing the XML returned. However, with a VB6 client which uses MSXML DOM parser, it complains the XML is not well-formed. The reason is that Axis encoded the < and > characters in XML into < and >, and MS XML parser does not automatically decode these. I would like to know whether it is possible to turn off such encoding in Axis so that I don't incur overhead with conversion?
I assume you're "returning" the XML as a String, right? If that's the case, Axis will always encode your XML as text instead of XML. If you want to create a document-style web service which returns a custom XML structure, you need to use org.w3c.dom.Element as the method argument and return type in your web service class.