osf.setStyle(SoapConstants.STYLE_MESSAGE);
Service service = osf.create(HeaderService.class, "HeaderService", "urn:HeaderService", null);
getXFire().getServiceRegistry().register(service);
OperationInfo op = (OperationInfo) service.getServiceInfo().getOperations().iterator().next();
assertEquals(2, op.getInputMessage().getMessageParts().size());
Binding binding = (Binding) service.getBindings().iterator().next();
assertEquals(1, binding.getHeaders(op.getInputMessage()).getMessageParts().size());
Document response = invokeService("HeaderService", "header.xml");
assertNotNull(HeaderService.a);
assertEquals("a", HeaderService.a.getName());
assertNotNull(HeaderService.b);