Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wrapping up messages in XML
Message
From
21/03/2004 20:54:10
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00888363
Message ID:
00888366
Views:
18
>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?

Most of these are doing by returning a proper XML string by constructing a custom SOAP envelope. When doing so, you can include everything in it such as several fields and some of that would include a validation message, if applicable. That would provide much more flexibility but requires a little bit more work on the server side.

Some would simply throw an exception which would include that text.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform