Message contains & as value of a node using the 
org.codehaus.xfire.util.dom.DOMInHandler() all characters including & after & 
are lost .
--------------------------------------------------------------------------------------------------------------------------------------------

                 Key: XFIRE-1112
                 URL: http://jira.codehaus.org/browse/XFIRE-1112
             Project: XFire
          Issue Type: Bug
         Environment: IBM WAS 5.1.1.16
JVM 1.4.2.9
            Reporter: Peter Hordijk
            Assignee: Dan Diephouse


Logging the requests and responses of Xfire can be logged using:

// Tell XFire to cache a DOM document for the various in/out/fault flows
service.addInHandler(new org.codehaus.xfire.util.dom.DOMInHandler());

// Add a logging handler to each flow
service.addInHandler(new org.codehaus.xfire.util.LoggingHandler());

In the DOMInHandler the XMLStreamReader is filled again. 
context.getInMessage().setXMLStreamReader(new 
W3CDOMStreamReader(doc.getDocumentElement()));

While converting from the document to a W3CDOMStreamReader the characters after 
& are lost.
Example:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soap:Body>
    <testResponse>
      <out>
                     <description>Start&amp;End</description>
      </out>
    </testResponse>
  </soap:Body>
</soap:Envelope>

The value of description become 'Start' instead of 'Start&End'

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to