>On a specific Web Service, there is a requirement to return an error formatted within a specific XML layout. So, if my assumption is ok, I understand that instead of calling COMRETURNERROR(), I have to lay out the error in something like this:
>
>
><Faults>
> <Fault ...>
> <faultcode />
> <faultstring/>
> <detail>
> <faultCode>...</faultCode>
> <faultAction>...</faultAction>
> <faultActor>...</faultActor>
> <faultDetail>...</faultDetail>
> </detail>
> </Fault>
></Faults>
>
>
>So, if my understand is correct, instead of invoking COMRETURNERROR(), which would have fired a messagebox on the client side, I am returning this XML string such as if everything went fine. It would then be a responsability of the client to detect such situation.
>
>Am I assuming correctly?
Yes. But keep in mind that, as stated in SOAP specs, you shouldn't have more than one fault element and, when present, it must come as a Body descendent.
----------------------------------
António Tavares Lopes