---
title: "A Biztalk 2004 riddle - Catching an exception from a web service"
url: "https://osherove.com/blog/2004/3/29/a-biztalk-2004-riddle-catching-an-exception-from-a-web-servi.md"
canonical: "https://osherove.com/blog/2004/3/29/a-biztalk-2004-riddle-catching-an-exception-from-a-web-servi.html"
published: "2004-03-29T18:50:00"
updated: "2004-03-29T18:50:00"
tags: [".Net Original"]
author: "Roy Osherove"
description: "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…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

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

By Roy Osherove March 29, 2004 In [.Net Original](https://osherove.com/blog/category/net-original)

**Historical article** · Originally published March 29, 2004; technical details may be outdated.

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.

## More in .Net Original

[All posts in .Net Original](https://osherove.com/blog/category/net-original)

- Mar 31, 2004

    ### [Scripting .Net on MSDN-AA](https://osherove.com/blog/2004/3/31/scripting-net-on-msdn-aa.html)

- Mar 29, 2004

    ### [Very good contest news, and an apology to Mark Miller](https://osherove.com/blog/2004/3/29/very-good-contest-news-and-an-apology-to-mark-miller.html)

- Mar 28, 2004

    ### [I think I found my book of the month](https://osherove.com/blog/2004/3/28/i-think-i-found-my-book-of-the-month.html)

- Mar 28, 2004

    ### [Troubled comments in XML documents](https://osherove.com/blog/2004/3/28/troubled-comments-in-xml-documents.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
