Error Handling OSB
697692Jul 2 2010 — edited Aug 19 2010HI all,
I am trying to throw an error to the calling service I have added the fault element in the wsdl of the proxy service, but whenever the error is thrown instead of getting the my fault messsage OSB throws its own fault structure as shown below. How can I replace this fault structure with my fault structure in my wsdl. I know how to replace the values of the OSB fault what I need is how to replace the fault structurre itself.Kindly help me
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>
BEA-382500: OSB Service Callout action received SOAP Fault response
</faultstring>
<detail>
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382500</con:errorCode>
<con:reason>
OSB Service Callout action received SOAP Fault response
</con:reason>
<con:details>
<con1:ReceivedFaultDetail xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config">
<con1:faultcode>soapenv:Server</con1:faultcode>
<con1:faultstring>BEA-380000</con1:faultstring>
<con1:detail>
<con:fault>
<con:errorCode>BEA-380000</con:errorCode>
<con:location>
<con:node>
RouteToManageProductOfferingAvailabilityTargetProvCS
</con:node>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>
</con1:detail>
</con1:ReceivedFaultDetail>
</con:details>
<con:location>
<con:node>
ManageProductOfferingAvailabilityATGReqCSPipeline
</con:node>
<con:pipeline>
ManageProductOfferingAvailabilityATGReqCSPipeline_request
</con:pipeline>
<con:stage>
ManageProductOfferingAvailabilityATGReqCSStage
</con:stage>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Thanks
Arun