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

Click here to load this message in the networking platform