Markus Schulz created CXF-8631:
----------------------------------

             Summary: Schema-Validation failed with UndeclaredPrefix
                 Key: CXF-8631
                 URL: https://issues.apache.org/jira/browse/CXF-8631
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.4.5
            Reporter: Markus Schulz
         Attachments: cxf-bug-schema-validation.zip

The validation failed if the prefix was declared at Soap-Body or Envelope. But 
it works if the prefix was declared at first child of soap-body.

 

validation works:
{code:java}
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:wsen="http://www.w3.org/2011/03/ws-enu";
    xmlns:base="http://test.namespace/base";
    xmlns:derived="http://test.namespace/derived";>
  <SOAP-ENV:Body>
    <wsen:Enumerate xmlns:derived="http://test.namespace/derived";>
      <wsen:EnumerationContext>
        <base:Filter xsi:type="derived:ExtendedFilter">...</base:Filter>
      </wsen:EnumerationContext>
    </wsen:Enumerate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope> {code}
and this don't work:
{code:java}
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:wsen="http://www.w3.org/2011/03/ws-enu";
    xmlns:base="http://test.namespace/base";
    xmlns:derived="http://test.namespace/derived";>
  <SOAP-ENV:Body xmlns:derived="http://test.namespace/derived";>
    <wsen:Enumerate>
      <wsen:EnumerationContext>
        <base:Filter xsi:type="derived:ExtendedFilter">
          <derived:Stichwort>searchPhrase</derived:Stichwort>
        </base:Filter>
      </wsen:EnumerationContext>
    </wsen:Enumerate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope> {code}
{{The only difference is the place of the 
xmlns:derived="http://test.namespace/derived"}}

 

{{I've created a fully running testcase to show the error.}}

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to