package test.saaj; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStream; import javax.xml.soap.MessageFactory; import javax.xml.soap.MimeHeaders; import javax.xml.soap.SOAPBody; import javax.xml.soap.SOAPElement; import javax.xml.soap.SOAPMessage; import javax.xml.soap.Text; public class TestMessageProperty extends junit.framework.TestCase { public TestMessageProperty(String name) { super(name); } private static final String textValue = "\uc548\ub155\ud558\uc138\uc694"; private SOAPMessage createTestMessage() throws Exception { MessageFactory mf = MessageFactory.newInstance(); SOAPMessage msg = mf.createMessage(); SOAPBody sb = msg.getSOAPBody(); SOAPElement se1 = sb.addChildElement("echoString", "ns1", "http://tempuri.org"); SOAPElement se2 = se1.addChildElement("string"); se2.addTextNode(textValue); return msg; } public void testWriteXmlDeclPropertyTrue() throws Exception { testXmlDecl("true", "