PDA

View Full Version : Need help on try/ catch


jason_jice
09-06-2006, 00:20
Hi Gurus,

I am new to webmethods ,I heard about we can use branch , exit etc to creat a try/catch block , but I don't know the details , can anyone kindly give an example ?

Thanks,

Jason

dndoye
09-06-2006, 02:31
Please refer to <webMethods_installation>/Developer/doc/DeveloperUsersGuide.pdf.

WmSamples package may also be useful.

Regards,
Djibril.

ylo
09-06-2006, 08:47
You can use the sequence below for try/catch block:

SEQUENCE (Exit on Success)
---SEQUENCE (Exit on Failure)
------Processing code here
---SEQUENCE (Exit on Done)
------Code to handle errors here (ie. getLastError)

jason_jice
09-06-2006, 10:39
Thanks guys

mcarlson
09-06-2006, 11:06
See this thread (http://www.wmusers.com/forum/showthread.php?t=10270) for some good discussion in this area.