>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.