@TomF 's response is the way to go. Synchronous request/reply with a topic is the pattern that works best for these use cases. In the Solace APIs, you will find “helper” classes/APIs that assist in this.
For example, take a look at RequestReplyMessagePublisher (Solace PubSub+ Messaging API for Java 1.1.0 API) in the Java API.