Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2178

SOAPMessageImpl ignores system properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • jbossws-native-2.0.3, jbossws-native-3.0.1
    • jbossws-native
    • None

      The FAQ states that for instance XML declaration writing can be turned on via system property
      "javax.xml.soap.write-xml-declaration", but infact this property seems to be ignored.

      I suggest a change to the constructor of org.jboss.ws.core.soap.SOAPMessageImpl from

      setProperty(WRITE_XML_DECLARATION, false);

      to

      setProperty(WRITE_XML_DECLARATION,
      System.getProperty(WRITE_XML_DECLARATION, "false"));

      or sth similar. The above change solves the problem easily and I suppose the same should be done for
      CHARACTER_SET_ENCODING, although it has a more sensible default (UTF-8).

      Regards,

      Per L

            ropalka Richard Opalka
            lindberger Per Lindberger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 5 minutes
                5m
                Remaining:
                Remaining Estimate - 5 minutes
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified