我有 SOAP Web 服务 (CXF2) 和 2 种方法我想使用 Spring Validator 接口的实现来验证输入参数这是我的 Web 服务方法:
@Override
@RequestWrapper(localName = "getData", className = "webservice.getMyData")
@WebMethod(operationName = "getData")
@ResponseWrapper(localName = "getDataResponse",className = "webservice.getDataResponse")
public void getData(
@WebParam(name = "keyList") List<String> keyList,
@WebParam(mode = Mode.OUT, name = "codReturn")Holder<List<CodRetour>> pCodRetour,
@WebParam(mode = Mode.OUT, name = "result") Holder<List<MyData>> pResult) {
是否可以使用 Validator 验证keyList?