((BindingProvider)port).getReqestContext()
.put("schema-validation-enabled", Boolean.TRUE);
That should do it.
Dan
On Monday 27 October 2008 9:50:08 pm juan.velez wrote:
> I have a WS Consumer (generated using WSDL2JAVA) but I need to enable
> schema validation. I have seen this done using the CXF.xml file
>
> <jaxws:client name="{http://www.areva.com/mmi/wsdl}MMIPortType"
> createdFromAPI="true">
> <jaxws:properties>
> <entry key="schema-validation-enabled" value="true" />
> </jaxws:properties>
> </jaxws:client>
>
>
> but I can not seem to find how to do this programmatically. Any advice?
>
> Thank you,
>
> Juan
--
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog