Hello Ruwan,

Sorry for the delay I was dragged into other things, Your help will be greatly 
appreciated.

The scenario is:

1) there is a proxy named "MainProxy" with inSequence "MainInSeq" and 
outSequence "MainOutSeq". And the message is eventually sent to say EndPoint 
named "MainEndpoint".
2) No lets say MainEndpoint is not working properly and return HTTP 500.
3) Synapse seems to genereate AxisFault. I would like to catch that fault and 
return an expected response to the caller of "MainProxy"


I wasn't able to clear the AxisFault and or could not return a valid message to 
the caller.

Please help.
Abid

-----Original Message-----
From: Ruwan Linton [mailto:[email protected]] 
Sent: Tuesday, October 12, 2010 8:39 AM
To: [email protected]
Subject: Re: Help wanted ! How to clear SOAP fault

Hi Abid,

Your question is not clear to me, can you re-state the question with some
background information.

Thanks,
Ruwan

On Sat, Oct 9, 2010 at 10:09 AM, Abid Khan-EXT <[email protected]>wrote:

> Just tried <makefault> mediator that does not work either, it throws
> following exception:
>
> java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl
> cannot be cast to org.apache.axiom.soap.SOAPFault
>    at
> org.apache.axiom.soap.impl.llom.SOAPBodyImpl.getFault(SOAPBodyImpl.java:120)
>    at
> org.apache.synapse.util.POXUtils.convertSOAPFaultToPOX(POXUtils.java:42)
>    at
> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:86)
>    at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:219)
>    at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:154)
>    at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:58)
>    at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
>    at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:147)
>    at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:301)
>    at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:131)
>    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
>    at
> org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:200)
>    at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>    at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>    at java.lang.Thread.run(Thread.java:619)
>
> Thanks & Regards,
> Abid
>
> -----Original Message-----
> From: Abid Khan-EXT [mailto:[email protected]]
> Sent: Friday, October 08, 2010 7:31 PM
> To: [email protected]
> Subject: Help wanted ! How to clear SOAP fault
>
> Hello all,
>
> I am trying to handle soap fault, but synapse and or axis keep thinking
> that this is fault, it look like there is some heard info. That I need to
> clear.
>
> Could any one point me to right direction
>
> Thanks & Regards,
>
> Abid Khan
> Java Consultant
> Jeppesen (Software Product Development)
> Desk: 303.328.6554 | Cell: 720.480.3523
> <Promotor of simple solutions, even rocket science can be simplified.>
>
>
>


-- 
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org

Lean . Enterprise . Middleware

phone: +1 408 754 7388 ext 51789
email: [email protected]; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
google: http://www.google.com/profiles/ruwan.linton
tweet: http://twitter.com/ruwanlinton

Reply via email to