How to handle soap faults from web services
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server > How to handle soap faults from web services




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to handle soap faults from web services  
John


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-09-04 08:32 PM

Hi,

I have a web service that I call, the response from the web service could be
 a soap fault.  The port that calls the webservice doesn't have the ability 
to add a fault message, if this is the case how do I add this so that I can 
handle errors from the webs
ervice?

--
John





[ Post a follow-up to this message ]



    RE: How to handle soap faults from web services  
Allen Zhang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-09-04 08:32 PM

You can capture the System.Web.Services.Protocol.SoapException inside of
the orchestration around the send shape in an atomic scope.

Steps:
1. Create a Scope shape, put the send shape inside.
2. Right click Scope shape and New Exception Handler.
3 In the exception handler select the type of the exception
4. In the exception handler, create an expression shape, inside you can
assign the exception for later decision branching

You will also need to set DeliveryNotification to Transmitted on the send
port.

Thanks

- Allen Zhang (MSFT)

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>
> Hi,
>
> I have a web service that I call, the response from the web service could
be a soap fault.  The port that calls the webservice doesn't have the
ability to add a fault message, if this is the case how do I add this so
that I can handle errors from the webservice?
>
> --
> John
>






[ Post a follow-up to this message ]



    Re: How to handle soap faults from web services  
Christof [MVP]


Report This Message To A Moderator Edit/Delete Message


 
07-09-04 08:32 PM

Allen, please can you clarify this.  I'm a little confused.

If you use an atomic scope, your message will not be commited to the message
box until it has finished. So, how would this work?  Did you actually try
this please?  (I'm actually not sure you can use the deliveryNotification in
this scenario.)

Best regards!
Christof

--
Christof [Microsoft BizTalk Server MVP]


"Allen Zhang (MSFT)" <azhang@online.microsoft.com> wrote in message
news:AjxDnQHZEHA.3168@cpmsftngxa06.phx.gbl...
> You can capture the System.Web.Services.Protocol.SoapException inside of
> the orchestration around the send shape in an atomic scope.
>
> Steps:
> 1. Create a Scope shape, put the send shape inside.
> 2. Right click Scope shape and New Exception Handler.
> 3 In the exception handler select the type of the exception
> 4. In the exception handler, create an expression shape, inside you can
> assign the exception for later decision branching
>
> You will also need to set DeliveryNotification to Transmitted on the send
> port.
>
> Thanks
>
> - Allen Zhang (MSFT)
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> -------------------- 
could[vbcol=seagreen]
> be a soap fault.  The port that calls the webservice doesn't have the
> ability to add a fault message, if this is the case how do I add this so
> that I can handle errors from the webservice? 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:44 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register