I have the below use case.
- Request is received by the ws-inbound gateway of service1.
- Service1 Passes the request to another ws-outbound gateway service2
- Service2 ws inbound gateway has an interceptor configured, which adds a custom soap header to the response
- the response from service 2 is passed to the output channel of service 1 (Final response).
I am able to see that soap header is added by printing the soap envelope in interceptor (service2), but it is not present in the final response. Any pointers to solve this issue will be helpful
<int-http:inbound-gateway> -> <int-http:outbound-gateway>. The second one will still be the WS Adapters pair. In addition, please, confirm that you see your header over the network. - Artem Bilan<int-ws:outbound-gateway>sends a request to somehttp://localhost:9999, so the network is involved and you can intercept that traffic with some tool. - Artem Bilan