How to return 500, along with a specific response and content-type? 2004-05-18 - By Karr, David
Back 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 listserv@(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
|
|