ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <matthieu.r...@gmail.com>
Subject Re: Examples of exception handling in BPEL
Date Wed, 14 Feb 2007 17:29:20 GMT
Hi Jeffrey,

Sorry for the late reply. I depends what you perception of "very extensive"
is, we have small examples in our test suite here:

http://svn.apache.org/repos/asf/incubator/ode/trunk/bpel-test/src/test/resources/bpel/2.0/

Nothing that I would call extensive though but that's a start.

Cheers,
Matthieu

On 2/12/07, Jeffrey Puro <jpuro@sterlingtesting.com> wrote:
>
> Are there any very extensive examples of catching exceptions in BPEL
> with apache ODE?  I have a web service that my BPEL script is calling,
> and the web service returns a fault that looks like either of the
> following.  I'd like to have a "catch" construct that catches both of
> the below faults, but I'm not sure how to write this.  Can anyone
> indicate how to write the schema and BPEL for catching the faults below?
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>             <soap:Body>
>
>                         <soap:Fault>
>
>                                     <faultcode>soap:Client</faultcode>
>
>                                     <faultstring>Operator is not defined
> for type 'DBNull' and type 'Integer'.</faultstring>
>
>
> <faultactor>http://d111web16/IAETRACKER/iaetrackerws.asmx</faultactor>
>
>                                     <detail/>
>
>                         </soap:Fault>
>
>             </soap:Body>
>
> </soap:Envelope>
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>             <soap:Body>
>
>                         <soap:Fault>
>
>                                     <faultcode>Application</faultcode>
>
>                                     <faultstring>Tracker
> Error</faultstring>
>
>
> <faultactor>http://d111web16/IAETRACKER/iaetrackerws.asmx</faultactor>
>
>                                     <detail>
>
>                                                 <stws:ErrorCode
> xmlns:stws="http://ws.test.com/schemas/tracker">10000</stws:ErrorCode>
>
>                                                 <stws:ErrorDescription
> xmlns:stws="http://ws.test.com/schemas/tracker">Deserialization has
> failed.</stws:ErrorDescription>
>
>                                     </detail>
>
>                         </soap:Fault>
>
>             </soap:Body>
>
> </soap:Envelope>
>
>
>
> Regards,
>
>
>
> Jeff
>
>
> This email (and any attachments) is intended only for the use of the
> individual or entity named above and may contain information that is
> privileged and confidential. If you are not the intended recipient, or have
> unauthorized access, you are hereby notified that copying, disseminating,
> distributing or taking any action in reliance on this email is strictly
> prohibited<br />
>
> Opinions, conclusions and other information in this message that do not
> relate to the official business of our firm shall be understood as neither
> given nor endorsed by it.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message