"Japanese : \u3088\u3046\u3053\u305d");
}
public void testSynchronization() throws Exception {
SOAPConnectionFactory scFactory = SOAPConnectionFactory.newInstance();
SOAPConnection con = scFactory.createConnection();
MessageFactory factory = MessageFactory.newInstance();
SOAPMessage message = factory.createMessage();
String requestEncoding = "UTF-16";
message.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, requestEncoding);
SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
SOAPBody body = envelope.getBody();
Name bodyName = envelope.createName("echo");
SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
Name name = envelope.createName("arg0");
SOAPElement symbol = bodyElement.addChildElement(name);
symbol.addTextNode("Hello");
URLEndpoint endpoint = new URLEndpoint("http://localhost:8080/jws/EchoHeaders.jws");
SOAPMessage response = con.call(message, endpoint);
String responseEncoding = (String) response.getProperty(SOAPMessage.CHARACTER_SET_ENCODING);
assertEquals(requestEncoding, responseEncoding);
}