I'm calling a webservice who's WSDL is including several schema's. For each operation there is a request and response schema defined. I'm using wsdl2java from axis1.4 to generate the client stub (and axis 1.4 as runtime).
Calling the webservice is no problem, but the response sent by the webservice is not valid according to the schema. There are several mandatory elements (according to the schema) that are not present in the reply. This is off course a mistake from the webservice itself and not my client's problem.
However, my client does NOT seem to validate the reply. It even perfectly parses the reply (and the mandatory elements that are absent, are simply null). This is not good: the client stub should at least validate the response and sent some kind of fault when it is not valid, no ?
The request I am sending IS properly validated. When I leave a (mandatory) element absent, the request is not send (I get a parser validation error saying 'not nillable element X is null' - or something like that.)
I would expect the same behaviour from the reply...
Any one an idea why the response is not properly validated ?
I want my playground back. Here, I'll give you this tiny ad for it: