Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wrapping up messages in XML
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00888363
Message ID:
00888398
Vues:
13
Hi, Chris.

>Can anyone please tell me how I can send back messages from my Web Service wrapped correctly in XML?
>
>For instance if I wanted to send back "Customer was not found", if I just do RETURN "Customer was not found" - then the program receiving the message complains of incorrectly formatted XML - how ro I wrap this correctly with XML?

It all depends on what the receiving end is waiting for. You may try something like:
create cursor Response ( text C(100) )
insert into response (text) value ("Customer was not found")

CursorToXML("Response","lcReturn")
return lcReturn 
Hope this helps,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform