You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Gajendra Kumar G (JIRA)" <ax...@ws.apache.org> on 2010/04/06 14:01:36 UTC
[jira] Created: (AXIS-2827) German characters like ü,- ,í are not properly processed from org.w3c.dom.Document to SOAPMessage object using AXIS
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