[wsf-c-dev] Fault handling in data service

Manoj manoj at wso2.com
Tue Mar 4 20:11:26 PST 2008


Samisa Abeysinghe wrote:
> Manoj wrote:
>> Manoj wrote:
>>> hi all,
>>>
>>> There are some cases which we need to do fault handling in our PHP 
>>> dataservice.
>>>
>>>          Eg
>>>          1)when there are no data in the table.
>>>          2)when the table doesn't exist.
>>>          3)when the database doesn't exist.
>>>          4)queries  which are return null values.
>>>
>>>          The JAVA people sending custom errors massages for  those 
>>> faults.They don't do AXIS level fault handling. Can anybody explain 
>>> the way which we need to handle those faults.
>
> We can send a SOAP fault with a custom fault reason.
>
> Samisa...
>
Hi samisa,

In according to nandika's idea currently  we send the custom fault 
reason inside the <error> element. Is that good enough?

Eg: Response = <ds:customer-addresses 
xmlns:ds="http://wso2.org/projects/wsf/php/ds"><error>table not 
found</error></ds:customer-addresses>





More information about the Wsf-c-dev mailing list