No the headers?   Can header validation be disabled?

-Frank

-----Original Message-----
From: Sergey Beryozkin [mailto:[email protected]]
Sent: Sunday, October 04, 2015 4:58 PM
To: [email protected]
Subject: Re: Not able to disable schema validation

Are you trying to disable the validation of SOAP payloads ?
The below code uses CXF JAX-RS specific classes...

Cheers, Sergey
> <endpoint-config name="myconfig">
>     <property name="set-jaxb-validation-event-handler" value="false" />
> </endpoint-config>
> </subsystem>
>
> I've tried programmatically
>
>    @Inject
>    public CxfConfig jaxWsConfig(OneAXmlManager headerManager, Bus bus) {
>      bus.setExtension(headerManager, HeaderManager.class);
>      ServerProviderFactory providerFactory =
> ServerProviderFactory.createInstance(bus);
>      providerFactory.setUserProviders(Arrays.asList(new
> JacksonJsonProvider()));
>      bus.setProperty("jaxrs.shared.server.factory", providerFactory);
>      bus.setProperty("set-jaxb-validation-event-handler", false);
>      bus.setProperty(Message.SCHEMA_VALIDATION_ENABLED,Boolean.FALSE);
>      return this;
>    }
>
>
> But everything I've tried does not get by the code snippet below in
> DataReaderImpl.  The setEventHander is set to true, and I have not
> found out a way to set setEventHander to false.
>
> During schema validation ReadHeaderInterceptor calls the
> DataReaderImpl.createUnmarshaller
>              if (setEventHandler) {
>                  um.setEventHandler(new
> WSUIDValidationHandler(veventHandler));
>              }
>
>
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Not-able-to-disable-schema-validation-
> tp5761403.html Sent from the cxf-user mailing list archive at
> Nabble.com.
>


--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/
Disclaimer: This email message and information contained in or attached to this 
message may be privileged, confidential, and protected from disclosure and is 
intended only for the person or entity to which it is addressed. Any review, 
retransmission, dissemination, printing or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you receive this message in error, please 
immediately inform the sender by reply email and delete the message and any 
attachments. Thank you.

Reply via email to