How to return 500, along with a specific response and content-type?
"Karr, David" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
I have a situation where I'm implementing some of the behavior of web services. In the case of returning errors, I need to be able to set the response code to 500, the response text to a particular SOAP fault, and set the content-type to "text/xml". What would happen if I set the content-type, set the status to 500, and then wrote the SOAP fault to the writer? Would that do what I described? ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html