Schema validation of elements with "fixed" values in WSDL does not seem to work in EAP 6

Solution Unverified - Updated -

Issue

  • I am writing a Web Service application using CXF as the SOAP engine, but have not managed to enable full schema validation. There is one minor issue regarding the validation of elements with "fixed" values.
  • We have an element "constantElem" that has "fixed" value of "001" in WSDL. We have observed the following behaviours with the validation of this element:
    • If the element does not appear in the message, we don't get any validation error and System get the null value (correct behaviour).
    • If the element appears in the message and the value is "001", no issue there and System gets the value "001" (correct behaviour).
    • If the element appears in the message and a value other than "001" , we get validation error (correct behaviour).
    • If the element appears in the message but it's empty, we don't get any validation error and System gets the blank value, i.e. empty String (issue).
  • We are not sure if this is the correct behaviour. According to W3C recommendation, System should get the value of "001" if the element appears with the empty tags.

Environment

  • JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content