aspose file tools
The moose likes Web Services and the fly likes Canonical Form of XML Message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Canonical Form of XML Message" Watch "Canonical Form of XML Message" New topic
Author

Canonical Form of XML Message

Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
Can anyone tell me (or point me to an article that tells me) how to produce a canonical form of an XML message. I need to do this before I produce a public / private key pair signature for the message.

If anyone knows of a good article on Canonical form I would be interested in that too. The only document that I have managed to find is the W3C white paper and that is completely illegable.

Thanks in advance,
Adrian
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
Maybe this article is more comprehensible.

Please do not post the same question to more than one forum, as you have done here. It leads to duplicated efforts.
[ December 15, 2005: Message edited by: Ulf Dittmer ]
Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
Thanks, thats a much better article.

Now I just need to know how to do it in Java. Anyone any ideas?

Adrian
Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
One of the obvious approaches to this problem would be with an XSLT stylesheet and perform a transform on the XML. Anyone know where I might find a stylesheet for this? I can't help feeling that this is a standard transform and that there therefore should be a standard stylesheet for it.


Adrian
Adrian Bates
Greenhorn

Joined: Jun 01, 2005
Posts: 24
Someone has posted what looks like an answer to this question over on the server side forum here:

http://www.theserverside.com/discussions/thread.tss?thread_id=38100

I still have a question about the different types of the canonical form. I have added this to the same thread on the Server Side forum so please check out the above link.

All help still grateful received.

Adrian
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Canonical Form of XML Message