4 Replies Latest reply on Oct 9, 2013 3:52 AM by Fabien Fabien

    Jboss7  add the DOCTYPE in xml Response

    Fabien Fabien Newbie

      Hi all,

      The jboss7 add the DOCTYPE in the xml response through the an HTML stream.

      The application generate a response as :

      <?xml version="1.0" encoding="UTF-8"?>
      <orderResponse xmlns="http://www.wolrd.com/application/delivery/2.0">
         <status>OK</status>
         <order transactionId="123">
            <orderedProductsList>
               <product proprietaryId="123">
                  <url usageType="PermanentDownload" distributionType="Internet">http://Application.world.com/978156790a400202590ed49d03f5725f/ici.acsm</url>
               </product>
            </orderedProductsList>
         </order>
      </orderResponse>
      
      

      This response is sent is the outputstream and jboss7 send :

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE orderResponse
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <orderResponse xmlns="http://www.wolrd.com/application/connectedcms/delivery/2.0">
         <status>OK</status>
         <order transactionId="123">
            <orderedProductsList>
               <product proprietaryId="123">
                  <url usageType="PermanentDownload" distributionType="Internet">http://Application.world.com/978156790a400202590ed49d03f5725f/ici.acsm</url>
               </product>
            </orderedProductsList>
         </order>
      </orderResponse>
      
      

       

      Why jboss7 added the DOCTYPE ? We have tested the application on jetty, and we do not have this issue. How i can fix that ?

      I am working with JBoss 7:

      - Modules version 1.1.1.GA

      - JBoss MSC version 1.0.2.GA

      - JBoss AS 7.1.1.Final "Brontes"

       

      bests regards,

      fabien