@Test public void renderTpicContextToResultForResponses() throws Exception { backend.put("our key", "is our value"); final StringWriter writer = new StringWriter(); final SoapHeader soapHeader = mock(SoapHeader.class); when(((SoapMessage) messageContext.getResponse()).getSoapHeader()).thenReturn(soapHeader); when(soapHeader.getResult()).thenReturn(new StreamResult(writer)); unit.handleResponse(messageContext, new Object()); assertThat(writer.toString(), containsString("<entry key=\"our key\">is our value</entry>")); }
@Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleResponse(MessageContext messageContext, Object o) { serializeContextToSoapHeader(messageContext.getResponse(), OutgoingResponse); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e);  }