Description
for example we have a methoh like
public BareDocumentResponse testDocLitFault(String in) throws BadRecordLitFault { System.out.println("Executing testDocLitFault sayHi\n"); List<Header> headers = new ArrayList<Header>(); Header header = null; try { header = new Header(new QName("http://test", "test"), new String("test"), new JAXBDataBinding(String.class)); } catch (JAXBException e) { e.printStackTrace(); } headers.add(header); context.getMessageContext().put(Header.HEADER_LIST, headers); throw new BadRecordLitFault("int fault", 5); }
we explicitly put some headers for response message, it works in normal response, but doesn't work when throw Fault/Exception