A Biztalk 2004 riddle - Catching an exception from a web service

So here's what my friend is trying to do:

He has a web service which is throwing and exception, hard coded, so that we can test if BizTalk gets it.

The exception was thrown either as a Soap Exception or as a regular exception (we tried both ways).

In BizTalk we have a try-catch shape, but we get NOTHING when we try raising the message.

Pretty simple, right? Yet there is no documented way on how this should actually work.

 This might be an issue with the way the web service was written? Or it may be an issue with BizTalk? we're not sure.

The WS is dead simple, just for testing.

As a last resort, I'm posting to my blog. Hope someone in blogland can help.

Published Monday, March 29, 2004 11:50 PM by RoyOsherove
Filed under:

Comments

Monday, March 29, 2004 8:13 PM by Randy H.

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Roy, I have not worked extensively with BT2004 so I'm not really sure where to start on this one. I have some contact info from the BizTalk team somewhere, I might be able to hook you up with someone that I met a while back. Let me take a look and if I have something useful I'll e-mail you.
Tuesday, March 30, 2004 4:48 AM by Paul Bartlett

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Are you sure it's "your friend"? ;)
Tuesday, March 30, 2004 10:46 AM by Roy Osherove

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Paul: heh
Yep. I have no problem saying I don't know something.
Tuesday, March 30, 2004 11:00 AM by Maxim V. Karpov

# re: A Biztalk 2004 riddle - Catching an exception from a web service

it is not possible to know everything!
Tuesday, March 30, 2004 3:36 PM by Andrew Watt

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Roy,

Try Scott Woodgate. I think his email is ScottWoo@microsoft.com. Failing that contact him via http://blogs.msdn.com/scottwoo/contact.aspx.

I hope that helps.

Andrew Watt
Tuesday, March 30, 2004 4:50 PM by Roy Osherove

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Thanks Andrew :)
Tuesday, March 30, 2004 7:20 PM by Joe Klug

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Look at the rety count in the send port configuration. By default it's set to 3 retries at 5 minute intervals. BizTalk will log exceptions in the application event log or in HAT until the number of retries is exhausted. Once this happens the exception will be passed back to the orchestration.

Hope this helps,

Joe
Tuesday, March 30, 2004 7:57 PM by Scott Woodgate

# re: A Biztalk 2004 riddle - Catching an exception from a web service

FYI Joe is the program manager for Web Services at Microsoft. Hopefully this helps you. Scott.
Monday, April 19, 2004 9:06 AM by veni

# re: A Biztalk 2004 riddle - Catching an exception from a web service

Biztalk 2004-Is there a way to mention the retry count for a dynamic send port.?
We have this option is static port.But my requirement is i need to set this value in a dynamic port