Arif Mohd,
Did you declare the AxisFault on your JSR-181 @WebMethod? Does the
fault definition show up in your service's WSDL?
Gert
Arif Mohd wrote:
Hi,
Could any body tell me what am i doing wrong here?
Arif Mohd wrote:
Hi,
Iam using JSR181 component to expose an EJB method as a service and iam
throwing an exception from EJB method as follows
throw AxisFault.makeFault(ex);
My component setup is
...... -->eip:tap-->eip:pipeline-->eip:tap-->...
the xbean configuration for pipeline is
<eip:pipeline service="bescocr:pipeToPub" endpoint="endpoint">
<eip:transformer>
<eip:exchange-target service="demo:my-service" />
</eip:transformer>
<eip:target>
<eip:exchange-target service="bescocr:myTap" />
</eip:target>
<eip:faultsTarget>
<eip:exchange-target service="bescocr:myQueue"/>
</eip:faultsTarget>
</eip:pipeline>
As intended when i get exception iam able to place the message in myQueue
But the message is like <stack>.....Complete stack trace...</stack>
I want a message which is an actual Soap Fault message like
<Fault><FaultString></FaultString>...
Am i doing any thing wrong while throwing exception? if so please help me
out in creating proper AxisFault object(which should contain user defined
error code,string and some extra info)