How can SOAPMessage parse <![CDATA[ ]]>?
问题 Here is the code which marshals java object into a SOAPMessage: public static SOAPMessage encode(String key,Object object) throws JAXBException, SOAPException{ JAXBContext airContext = newInstance("com.test"); contextMap.put("ws", airContext); Marshaller marshaller = airContext .createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); MessageFactory messageFactory = MessageFactory.newInstance(); SOAPMessage message = messageFactory.createMessage();