You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by sudhakarg <su...@gmail.com> on 2012/08/22 16:42:00 UTC

Spring and Apache CXF - Validation of Request against WSDL - code/configuration

In our project we are using Spring 3.0 and Apache CXF 2.6.1. I need to do
validation of the JAXB request object with data (JAXB class generated from
the wsdl file) against the WSDL file. 

Can you provide Spring code and/or configuration example for the same?




--
View this message in context: http://cxf.547215.n5.nabble.com/Spring-and-Apache-CXF-Validation-of-Request-against-WSDL-code-configuration-tp5712985.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Re: Spring and Apache CXF - Validation of Request against WSDL - code/configuration

Posted by Daniel Kulp <dk...@apache.org>.

On Aug 22, 2012, at 10:42 AM, sudhakarg <su...@gmail.com> wrote:

> In our project we are using Spring 3.0 and Apache CXF 2.6.1. I need to do
> validation of the JAXB request object with data (JAXB class generated from
> the wsdl file) against the WSDL file. 
> 
> Can you provide Spring code and/or configuration example for the same?
> 

You should just need to add the schema-validation-enabled flag to the jaxws:endpoint definition in the spring config:

    <jaxws:endpoint name="{http://apache.org/hello_world_soap_http}SoapPort"
        wsdlLocation="wsdl/hello_world.wsdl"
        createdFromAPI="true">
        <jaxws:properties>
            <entry key="schema-validation-enabled" value="true" />
        </jaxws:properties>
</jaxws:endpoint>


> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Spring-and-Apache-CXF-Validation-of-Request-against-WSDL-code-configuration-tp5712985.html
> Sent from the cxf-dev mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com