Hi hi,
I’ve decided to implement the publishAndWait thing, and it seems to work when the IS that publishes is the same as the IS that replies.
However I seem to have a problem when I use this with two IS: the publishAndWait method hangs until it times out.
The service that is supposed to answer executes corretly, and sends the reply in less than 5 seconds.
The publishAndWait is set to wait 5 minutes and the service sends the reply in less than 5 seconds so the timeout doesn’t seem to be the problem…
Here are the settings for the publish and wait:
local: false
waittime: 300000
async: false
documentTypeName: set to the type name of my request
document: mapping of an instance of above type
receiveDocumentTypeName: set to the type name of the answer expected (if I don’t set it the result is the same)
Here are the settings of the reply in the other service:
receivedDocumentEnvelope: mapping of the “_env” attribute in the received document
documentTypeName: set to the type name of the answer expected by the other service
document: mapping of an instance of the above type
delayUntilServiceSuccess: not set
Thanks in advance.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB