This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

PayloadValidatingInterceptor http-status 500 issue

Sep 27th, 2012, 04:01 AM

I'm using spring-ws-core 2.1.0.RELEASE and the PayloadValidatingInterceptor to validate incoming requests to an xsd.
When the PayloadValidatingInterceptor finds the request is invalid, a soap-fault is returned with http-status 500.

Is the http-status 500 the valid status for a soap-fault? Is there any way to change the http-status to 400? Did the spring-ws-core 2.0.4-RELEASE return this? It looks like the underlying code depends on what soap library is underneath.

The reason I am asking is that apparently .net has a serious issue getting the soap-fault if a http-status 500 is returned.