In the wM IS Built-In Services Guide (for 7.1.1), a note under the pub.publish:waitForReply service mentions -
“If the waitTime interval elapses before the pub.publish:waitForReply service executes, the service immediately returns a null document which indicates that the wait time has expired.”
Does this mean that if the reply has been received within the waitTime, but the waitForReply was invoked after the waitTime, the reply document is ignored?
I tried to emulate the above mentioned scenario and my reply document is always null :(. This is what I basically did -
publishAndWait (waitTime - 400, async - true)
Sleep for 400ms (using java code)
If the sleep time is less than 400ms, the reply is received, else it is null. Is this the correct behaviour? Any thoughts?