assertEquals(root.getName(), e.getName());
}
public void testWithChunking() throws Exception
{
Echo echo = (Echo) new XFireProxyFactory().create(service, "http://localhost:8391/Echo");
Client client = Client.getInstance(echo);
client.setProperty(CommonsHttpMessageSender.GZIP_ENABLED, "true");
client.setProperty(HttpTransport.CHUNKING_ENABLED, "true");
Element root = new Element("root", "a", "urn:a");
root.addContent("hello");
Element e = echo.echo(root);
assertEquals(root.getName(), e.getName());
}