axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gajendra Kumar G (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-2827) German characters like ü,- ,í are not properly processed from org.w3c.dom.Document to SOAPMessage object using AXIS
Date Tue, 06 Apr 2010 12:01:36 GMT
German characters like ü,- ,í are not properly processed from org.w3c.dom.Document to SOAPMessage
object using AXIS
-------------------------------------------------------------------------------------------------------------------

                 Key: AXIS-2827
                 URL: https://issues.apache.org/jira/browse/AXIS-2827
             Project: Axis
          Issue Type: Bug
          Components: SAAJ
         Environment: Java, windows XP and WebLogic
            Reporter: Gajendra Kumar G


Hello,
when I am trying to add the org.w3c.dom.Document object into SOAPMessage Body object it is
converting my german character in the Document object to some special characters (for eg:
ü in the Document object, after conversion  the new character is ü).
character conversion happend after this step in the following code: body.addDocument(org.w3c.dom.Document);

sample code:
// All SAAJ SOAP messages are created by using a message factory
        MessageFactory msgFactory = getMessageFactory();
        SOAPMessage msg = msgFactory.createMessage();
         // Get the SOAP Part from the SOAP Message object
        SOAPPart soapPart = msg.getSOAPPart();
        // The SOAP part object contains the SOAP Envelope Object
        SOAPEnvelope envelope = soapPart.getEnvelope();
        SOAPHeader header = envelope.getHeader();

        //To determine if the SOAPHeader can be detached from the envelope, so that an empty
header is only applied
        
        SOAPFactory sFactory = getSOAPFactory();
        SOAPElement originatingSysElement = sFactory.createElement(Constants.SOAPHeader.Element.ORIGINATION_SYSTEM);
        originatingSysElement.addTextNode(Constants.SOAPHeader.Element.ORIGINATION_SYSTEM_NAME);
        header.addChildElement(originatingSysElement);
        //Get the SOAP Body from the SOAP Envelope
        SOAPBody body = envelope.getBody();
        body.addDocument(org.w3c.dom.Document);
        // Save changes to the message we just populated
        msg.saveChanges();

Kinldy help on this issue.
Thanks and Regards
Gajendra

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message