This content has been marked as final. Show 4 replies
I open webservice test client here: /wls_utc/?wsdlUrl=<my wsdl>
There is a text field 'number' on the page.
I leave the field empty and press button to send request.
Next page is /wls_utc/callOperation.do and I can see empty <number /> tag in the SOAP request.
It is not my case, because I need request without <number /> tag at all.
By default, SOAP messages are not validated against their XML schemas. You can enable XML schema validation for document-literal Web Services on the server or client, as described in the following sections.
please check below documentation
And try this option for jax-ws it should work
I added @SchemaValidation in my Java class, recompiled it and redeployed.
Server was restarted and cache and tmp folders were deleted.
Unfortunately, it does not work.
Scheme validation works without @SchemaValidation if add <validate-request>true</validate-request> into weblogic-webservices.xml.
My soap client received SOAP Fault and 500 Internal Server Error for request without mandatory tag.
But I use weblogic.wsee.tools.anttasks.JwscTask and it generate weblogic-webservices.xml without <validate-request>.
Therefore @SchemaValidation is the best solution for me.
Which reasons @SchemaValidation doesn't work?