As per documentation to enable schema validation for the client side you need to set jaxws
property: schema-validation-enabled
to true
. Example XML configuration:
<jaxws:client name="{http://apache.org/hello_world_soap_http}SoapPort"
createdFromAPI="true">
<jaxws:properties>
<entry key="schema-validation-enabled" value="true" />
</jaxws:properties>
</jaxws:client>
Or either java code equivalence:
((BindingProvider)port).getRequestContext().put("schema-validation-enabled", "true");