[ 
https://issues.apache.org/jira/browse/CXF-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761089#action_12761089
 ] 

Arik Gorelik commented on CXF-2455:
-----------------------------------

Looks like after experimenting more with this, in 2.2.4-SNAPSHOT, the schema 
validation setting is ignored?

I just sending a simple integer type in an <id> element like this:

<id>12345a</id>

but getting a validation error which I would like to turn off and able to do so 
in 2.2.3. Moreover, in 2.2.3 in the UNMARSHAL phase, the value is being set to 
"null" in case of invalid values for the elements based on the schema types.

Here is the stack trace:

DefaultValidationEventHandler: [ERROR]: For input string: "12345a" 
     Location: line 11
Sep 30, 2009 8:47:21 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
WARNING: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshalling Error: For input string: 
"12345a" 
        at 
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:661)
        at 
org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:533)
        at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:119)
        at 
org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:99)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
        at 
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)

> 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
>             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.

Reply via email to