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

TransformInInterceptor / TransformOutInterceptor assume UTF-8, ignore header-provided character set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.11, 3.1.12
    • None
    • Soap Binding
    • None
    • client Linux/Java/CXF (actually scala using sbt-play-soap)
      server IBMi AS/400

    • Unknown

    Description

      When talking to a server using IBMi / RPG-based software and SOAP gateway:
      the returned SOAP message contains XML encoded as ISO-8859-1; the HTTP header do specify a content type of xml+soap with character set ISO-8859-1; however the XML message itself include no character set declaration.

      Due to discrepancies between the official WSDL for the SOAP message and the remote implementation, a couple transforms had to be deployed. This works fine as long as the exchanged messages actually conform to US-ASCII (no diacritics), but whenever any character encoded differently between ISO-8859-1 and UTF-8 is used, the TransformInInterceptor fails to parse the text, as the XMLStreamReader is built to expect UTF-8 and actually receives ISO-8859-1 input

      Attachments

        Activity

          People

            Unassigned Unassigned
            cchepelov Cyrille Chépélov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: