Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wrapping up messages in XML
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00888363
Message ID:
00888398
Views:
12
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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform