xml-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeong Ahn Lee <jeongahn2...@yahoo.com>
Subject Serialization problem!!
Date Mon, 24 Jun 2002 06:50:17 GMT
Hi all,

i am having a problem in serializing and
de-serializing the XML (Dom document)

what i am doing is i am creating a
org.w3c.dom.Document object ( SOAP Message)
i am digitally signing it using XML security suite
from apache( Digial Signature),

i am serializing it like below

// org.apache.xml.serialize.XMLSerializer;

XMLSerializer serializer = new XMLSerializer();
String docString = serializer.writeToString(doc);

and de-serializing it like below

DocumentBuilderFactory dbf =
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new InputSource(new

but what happens is in these processes(serializiation
and de-serialization) the document
get modified and my signature verification fails.

what should i do to avoid this. what i am doing is

for me serializiation and de-serialization is very
important because, i need to send that
document over HTTP.

Thanks in advance
Jeong Ahn

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>

View raw message