Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specific requirement to return an error
Message
From
31/08/2002 01:59:03
 
 
To
30/08/2002 18:19:34
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00695587
Message ID:
00695619
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform