[wsf-c-dev] Fault handling in data service
Samisa Abeysinghe
samisa at wso2.com
Tue Mar 4 20:45:23 PST 2008
Manoj wrote:
> 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>
Is there a complete SOAP message captured with a full fault.
Samisa...
--
Samisa Abeysinghe
Software Architect; WSO2 Inc.
http://www.wso2.com/ - "Oxygenating the Web Service Platform."
More information about the Wsf-c-dev
mailing list