Hi, just put a flag in the service B input, this way you can set a fixed value to each service that call service B, so service B will know who are invoking him.
Regards.
Arnaud’s solution will be sufficient to capture the name of the calling service within a Java service, however not sure how the same can be implemented in a flow service.