Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5765

Response is invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.11, 3.0
    • 2.7.12, 3.0.1
    • JAX-WS Runtime
    • None
    • CXF 3.0.0
      JDK 1.7.0_45
      Tomcat 7.0
      Eclipse Version: Kepler Service Release 1
      Web Service (Server) generated with wsdl2java OR with the JEE-Eclipse Web Service Wizard

    • Unknown

    Description

      Webservice response validation fails when using CXF Schema Validation (cxf-beans.xml: ... <entry key="schema-validation-enabled" value="true" /> )

      Response is
      <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Marshalling Error: UndeclaredPrefix: Cannot resolve 'ns1:StatusCodeTyp' as a QName: the prefix 'ns1' is not declared.</faultstring>
      </soap:Fault>

      Reproducible with:
      Sample Minimal WSDL: https://github.com/mattbond/PaperTest1/blob/master/WebContent/wsdl/paper.wsdl
      Sample Eclipse Project on GitHub: https://github.com/mattbond/PaperTest1.git

      Request, Responses (with and without validation) and console Logs available here:
      https://github.com/mattbond/PaperTest1/tree/master/Request

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            mattbond Matthew Bond
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: