Here is the scenario.

In the WSDL there are a couple namespaces:

Namespace "base" with an element called ServiceResultsBase (this has a
couple common properties such as rowCount)

Then there is the primarily namespace for the WSDL

Namespace "service" has an element that extends ServiceResultsBase that
includes other data that the needs to be returned.

The Axis2 side is the server, and when it returns the data, it is appearing
that it returns all of the attributes in the service namespace, (even the
properties coming from base that it inherited).

Other people that have used this service that I am interfacing with haven't
had a problem.

But with CXF 2.2 as a client, it is telling me that it can't match what its
getting back to the right data elements

DefaultValidationEventHandler: [ERROR]: unexpected element (uri:"
http://service.services/xsd";, local:"rowsReturned"). Expected elements are
<{http://service.services/xsd}serviceRecords>,<{
http://base.services/xsd}rowsReturned>
     Location: line 1

i was manually able to change the WSDL so move the elements from
ServiceResultsBase to the elements that extend it, and then it works... but
I am trying to figure out which implementation is correct.

When one element extends the other, which namespace should the attributes
from the parent come from?

Or do i need to turn off schema validation? (How do i?)

Cole Ferrier

Reply via email to