When we specify the “Recieved Document Name”, should I publish this document back to the Broker or does Publish-and-Wait know to pick up it up from the targeting service?
you have to use service “reply” (in WmPublic package i think) in target service to send back a document. In Advantage there is a special wM developer publish and subscribe guide
Welcome to WMUsers! Take a second to join the great community here.
The Publish-Subscribe Developer’s Guide can be found in the \Developer\Doc\Guides folder as well as on Advantage. You may also want to review the description for the pub.publish:publishReply service.
The service processing the document type published by publishAndWait should use publishReply to publish a response document type to the broker. There is no option to retrieve a document type directly from a service. Request/reply routing is handled by the broker not be the publishing or replying services themselves.