The easiest way to indicate an error is to simply throw an exception from your service. The server will return an error code (I don’t recall which error code is the default) and the response content you (optionally) set using setResponse. If no response is set, IS returns the contents of the pipeline in an HTML table.
If you’re using 6.5 or later, you can use setResponseCode to set the specific error code you desire.
Here are a couple of threads that have additional info, if you want to control more aspects of the http response (setting http headers, setting different content types, etc.).
[URL=“wmusers.com”]wmusers.com
[URL=“wmusers.com”]wmusers.com
Do a search for “setResponse” for more threads on the topic.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods