BizTalk Server General - access exception data?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > October 2005 > access exception data?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author access exception data?
doron

2005-10-26, 7:48 am

Hello,

My orchestrations send requests and receive replies to/from remote web
services.

In some cases the services return an exception - can I access them? how
can I do that?

When I access the web services directly from a web form I get to see
the exception & data when it happens - that is the data I want to
"catch" within my orchestration.

(some errors are Java runtime errors and/or oracle errors...)

The reason I want to read the messages is because I want to decide
whether I should keep try calling the web service (in case the database
is down, web service server is down etc) or maybe I better skip the
operation. (bad input or any other error that is not going to recover)

Thank you,

Doron

Marvin Smit

2005-10-26, 5:52 pm

Hi,

I think the following option provides you with what you would like;

Put the send/receive in a "non transactional" scope and add the
"Exception Handler" block. This will allow you to catch the exception
and use the data from that exception to continue your flow.

Hope this helps,

Marvin Smit.

On 26 Oct 2005 05:27:22 -0700, "doron" <dorongo@amdocs.com> wrote:

>Hello,
>
>My orchestrations send requests and receive replies to/from remote web
>services.
>
>In some cases the services return an exception - can I access them? how
>can I do that?
>
>When I access the web services directly from a web form I get to see
>the exception & data when it happens - that is the data I want to
>"catch" within my orchestration.
>
>(some errors are Java runtime errors and/or oracle errors...)
>
>The reason I want to read the messages is because I want to decide
>whether I should keep try calling the web service (in case the database
>is down, web service server is down etc) or maybe I better skip the
>operation. (bad input or any other error that is not going to recover)
>
>Thank you,
>
>Doron


doron

2005-10-26, 5:52 pm

Hi,

I know how to catch exceptions inside the orchestrations, the thing is
I can't manage to get the original messages. (which I can see while
using a regular web form to access the the ws directly)

Doron.

doron

2005-10-26, 5:52 pm

Hi,

I know how to catch exceptions inside the orchestrations, the thing is
I can't manage to get the original messages. (which I can see while
using a regular web form to access the the ws directly)

Doron.

Jon Flanders

2005-10-26, 5:52 pm

Hello doron,
You need to do what Marvin suggest - plus specify that you want Delivery
Notification on the Send Port.


Jon Flanders [MVP]
http://www.masteringbiztalk.com

> Hello,
>
> My orchestrations send requests and receive replies to/from remote web
> services.
>
> In some cases the services return an exception - can I access them?
> how can I do that?
>
> When I access the web services directly from a web form I get to see
> the exception & data when it happens - that is the data I want to
> "catch" within my orchestration.
>
> (some errors are Java runtime errors and/or oracle errors...)
>
> The reason I want to read the messages is because I want to decide
> whether I should keep try calling the web service (in case the
> database is down, web service server is down etc) or maybe I better
> skip the operation. (bad input or any other error that is not going to
> recover)
>
> Thank you,
>
> Doron
>



doron

2005-10-26, 5:52 pm

Hello Jon,

1) Where do I specify the delivery notification? I couldn't find it...

2) which exception should I use? System.Exception will do?

Thank you,

Doron.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com