Web services 验证SpringSOAPWebService响应服务器端

Web services 验证SpringSOAPWebService响应服务器端,web-services,spring,validation,soap,response,Web Services,Spring,Validation,Soap,Response,我想在服务器端验证SOAPSpringWebService对XSD的响应。 验证结果不应导致soap错误。 出于客户端兼容性原因,webservice响应包含 验证错误,如 <SOAP-ENV:Body> <ns:eltResponse> <errCode>the error code</errorCode> <errMessage>the error message</errMessage>

我想在服务器端验证SOAPSpringWebService对XSD的响应。 验证结果不应导致soap错误。 出于客户端兼容性原因,webservice响应包含 验证错误,如

<SOAP-ENV:Body>
   <ns:eltResponse>
      <errCode>the error code</errorCode>
      <errMessage>the error message</errMessage>
   </ns:eltResponse>
</SOAP-ENV:Body>
我试过了,而且有一个习惯。 但这会导致soap错误。是否可以创建如上所述的响应,例如使用异常解析程序