Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Specific requirement to return an error
Message
De
30/08/2002 18:19:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Specific requirement to return an error
Divers
Thread ID:
00695587
Message ID:
00695587
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform