public void testHeaders() throws Exception
{
XFireProxyFactory xpf = new XFireProxyFactory(getXFire());
Echo echo = (Echo) xpf.create(service, "xfire.local://Echo");
Holder h = new Holder();
assertEquals("hi", echo.echo("hi", h));
assertEquals("header2", h.getValue());
Document wsdl = getWSDLDocument("Echo");
addNamespace("wsdlsoap", WSDLBuilder.WSDL11_SOAP_NS);
assertValid("//wsdl:input/wsdlsoap:header[@message='tns:echoRequestHeaders'][@part='in0']", wsdl);