aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-09 15:41:19 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-09 16:13:54 +0200
commitf27ff5780d98e747742140c526fb1e3469bb5748 (patch)
tree3787b02d2f4a4442d745632cc64259dd4954c47f /src/main/resources
parent4aed369467b2c6486de69ac767475fd305e0e068 (diff)
downloadmoa-zs-f27ff5780d98e747742140c526fb1e3469bb5748.tar.gz
moa-zs-f27ff5780d98e747742140c526fb1e3469bb5748.tar.bz2
moa-zs-f27ff5780d98e747742140c526fb1e3469bb5748.zip
Fix: Enable ApacheCXF's Automated Schema Validation
Problem: Apache CXF does not validate incoming mzs:DeliveryRequests automatically. Per default, validation is off (performs better). However, (1) we need to validate incoming requests, and (2) automated CXF validation requires less maintenance and is expected to be more stable than manual validation. Solution: - Add @SchemaValidation annotation to @Service. - Endpoint Configuration: set WsdlLocation and ServiceName (needed to prevent parser errors; see [1]). Without those, CXF validates against generated classes and not against the WSDL spec, and generated classes do not contain format restrictions. Add a testcase with an invalid delivery request ("rejectBothProfile- AndCorporateBody") to ensure that the validator works. [1] https://stackoverflow.com/questions/2231779/cxf-and-validation-schema-restrictions-ignored
Diffstat (limited to 'src/main/resources')
0 files changed, 0 insertions, 0 deletions