cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arik Gorelik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2455) Unable to disable schema validation in 2.2.4-SNAPSHOT
Date Wed, 30 Sep 2009 23:13:23 GMT

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

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

Sorry for the spam, but more info on this...

I am trying to avoid having my message be processed by the DocLiteralInInterceptor so I wrote
my custom intercetor to handle the Fault which I want to throw; however, my custom interceptor
does not fire after URIMappingIntercetor and before DocLiteralInInterceptor after I add it
to the chain. I've been debugging the code, but not sure why it does not fire.  

This is how I am adding it:

	public TestFaultThrowingInterceptor() {
		super(Phase.UNMARSHAL);
		addBefore(DocLiteralInInterceptor.class.getName());
	}

                     	public void handleMessage(SoapMessage message) throws Fault {
		// Obtain the fault from the previous phases 
		Fault fault = (Fault) message.getContent(Exception.class);
		if (fault != null) {
			throw fault;
		}
	}

<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" /> 
                <ref bean="testFaultThrowingInterceptor" /> 
            </jaxws:inInterceptors> 
    </jaxws:endpoint> 



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


Mime
View raw message