Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing errors
Message
De
30/10/2001 05:20:00
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
29/10/2001 19:09:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Divers
Thread ID:
00574815
Message ID:
00574905
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Hi Michel you can raise an error on your webservice with COMRETURNERROR() doing that will raise an error on the client that is calling your webservice that way you can have an error routine to deal with errors.

>In a Web Service, sometimes, we have to return an error. For now, I am using a condition on the client side to detect if I have an XML cursor or not. If not, than I know this is an error message. How can I store the error in the Web Service object at the server level? Basically, on the client side, there could be a use of the error property for such need. I could then use the following:
>
>
>loUniversalThread=Createobject("mssoap.soapclient")
>loUniversalThread.mssoapinit("...")
>loUniversalThread.GetMessage()
>IF loUniversalThread.lError
>   MESSAGEBOX(loUniversalThread.cErrorMessage)
>   RETURN
>ENDIF
>* Show cursor...
>
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform