1. CXF
  2. CXF-3233

JAXB xsd validation working on incoming messages but not outgoing messages


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.3.1
    • Fix Version/s: Invalid
    • Component/s: Bus
    • Labels:
    • Environment:

      WebLogic 10.0, WebSphere 6.1


      Using CXF 2.3.1.

      Generated Java from WSDLs using JAXB.


      <entry key="schema-validation-enabled" value="true" />

      in the client configuration.

      My test creates an object that fails this particular requirement of the WSDL:

      <xsd:simpleType name="UUID.Content">
      <xsd:documentation xml:lang="EN">
      Universally Unique Identifier
      <xsd:restriction base="xsd:token">
      <xsd:length value="36" />








      " />

      However, the message is marshalled and makes it all the way through the outgoing interceptor chain.

      The WSDL is one-way: input-only.

      wsdlLocation is specified in an annotation in the Impls.

      Interestingly, incoming messages that fail validation of this same constraint are blocked by the interceptor chain during unmarshalling.

      I'm testing on WebLogic. I could also test on WebSphere is needed.

      Other XSD validation failures (such as a missing required element) are being caught by the outgoing marshaller.

      The reason that we upgraded to 2.3.1 from 2.2.6 was that we were seeing similar issues on the inbound messages. In 2.3.1, complete XSD validation occurs for inbound messages but not for outbound ones.


        Benjamin Shults created issue -
        Freeman Fang made changes -
        Field Original Value New Value
        Assignee Freeman Fang [ ffang ]
        Freeman Fang made changes -
        Fix Version/s NeedMoreInfo [ 12315387 ]
        Benjamin Shults made changes -
        Environment webLogic WebLogic, WebSphere
        Benjamin Shults made changes -
        Environment WebLogic, WebSphere WebLogic 10.0, WebSphere 6.1
        Freeman Fang made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s Invalid [ 12312706 ]
        Fix Version/s NeedMoreInfo [ 12315387 ]
        Resolution Invalid [ 6 ]
        Daniel Kulp made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12541765 ] Default workflow, editable Closed status [ 12605329 ]


          • Assignee:
            Freeman Fang
            Benjamin Shults
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: