[
https://issues.apache.org/jira/browse/CXF-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762033#action_12762033
]
Arik Gorelik commented on CXF-2455:
-----------------------------------
Thank you very much. I got the latest snapshot and was able to turn off the
default jaxb validation event handler for now.
// Fix in CXF 2.2.4 to disable jaxb default validation
message.put("set-jaxb-validation-event-handler", false);
message.put("jaxb-validation-event-handler", null);
I'll see if I can find a way to use the default validation and also use my
validation together. Ideally, that would be great for me, but that's a
challenge as the default jaxb validation does not allow me to get past
DocLiteralInInterceptor and only past that interceptor I can return custom
exception types (from the schema) which are filled in with the
bindings/values that I want.
Best Regards,
Arik.
> Unable to disable schema validation in 2.2.4-SNAPSHOT
> -----------------------------------------------------
>
> Key: CXF-2455
> URL: https://issues.apache.org/jira/browse/CXF-2455
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.4
> Reporter: Arik Gorelik
> Assignee: Daniel Kulp
> Fix For: 2.2.4
>
>
> Hello,
> It seems I am unable to disable schema validation CXF 2.2.4-SNAPSHOT as it is
> enabled by default?
> <jaxws:endpoint
> id="testService"
> implementor="testServiceImpl"
> wsdlLocation="wsdl/v29/testService.wsdl"
> address="/v29/testService">
> <jaxws:properties>
> <entry key="schema-validation-enabled" value="false" />
> </jaxws:properties>
> <jaxws:inInterceptors>
> <ref bean="testInterceptor" />
> </jaxws:inInterceptors>
> </jaxws:endpoint>
> This works in 2.2.3 as I am able to disable schema validation to perform
> custom checks myself. However, in the latest 2.2.4-SNAPSHOT, I am not longer
> able to disable the schema validation. Is there another way to do this
> without touching the Endpoint Service Interface/Class? I am using a WSDL
> first approach to develop my services.
> Best Regards,
> Arik.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.