Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Specific requirement to return an error
Message
From
30/08/2002 18:19:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Specific requirement to return an error
Miscellaneous
Thread ID:
00695587
Message ID:
00695587
Views:
53
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?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform