Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-816

Missing encoding in dom4j element/document


    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: 2.1.3
    • Component/s: Core
    • Labels:


      I'm using spring-ws 2.1.0.RELEASE, my webservice has @RequestPayload on a dom4j element. It appears that the dom4j element has no encoding set: the method element.getDocument().getXMLEncoding() returns null.

      How do I know what encoding was used sending in the request? Is there a way I can force conversion to an encoding such as UTF-8?

      The incoming request (I'm using SOAPUI for testing) shows it transfers ContenType: text/xml;charset=UTF-8, but it's not picked up when creating the Element. Isn't this an issue, or should the dom4j Element be changed to a Document? How do I do that, it appears it's not supported (yet).


        lino Lino Cibran created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        arjen.poutsma Arjen Poutsma made changes -
        Fix Version/s 2.1.3 [ 13897 ]
        arjen.poutsma Arjen Poutsma made changes -
        Resolution Works as Designed [ 9 ]
        Status Open [ 1 ] Resolved [ 5 ]


          • Assignee:
            arjen.poutsma Arjen Poutsma
            lino Lino Cibran
          • Votes:
            0 Vote for this issue
            2 Start watching this issue


            • Created: