Hi all,

My Apache SOAP v 2.2 is installed & working with Jetty 3.0.6. I'm trying to get data 
structures with cyclical references to marshal correctly. I've modified the Apache 
SOAP source code to do this as follows:

1. Every XML data item has a unique ID for it, whether or not this is needed.
2. BeanSerializer detects duplicate objects or cycles, and in either case generates an 
HREF XML tag to refer to the original item, instead of serializing the item again.

The XML it generates appears to always be valid, and sometimes it works. When it does 
not work, the process that is unmarshalling the data (sometimes the client, sometimes 
the server) complains that the XML HREF reference refers to an ID tag that is "not 
defined" -- despite the fact that this tag is always defined somewhere in the XML 
message.

In other words, the unmarshaller sometimes matches the HREF to the ID and successfully 
generates the objects. But other times, the unmarshaller complains that it can't find 
the item to which the HREF refers (even though it does exist in the XML message).

In every case, I can look at the XML and see that the HREF tag always has a matching 
ID tag, even when the parser says it couldn't be found.

I'm wondering if there is some kind of namespace issue that might prevent the HREF 
tags from matching back to the ID tags to which they refer. In other words, even 
though the HREF string is unique and exactly matches the ID string, some kind of 
namespace issue prevents the parser from matching them up.

This is probably a simple XML issue but I'm kinda new to XML so if anyone can help 
point me in the right direction regarding HREF and ID, I would appreciate it.

Thanks,

Michael R. Clements
[EMAIL PROTECTED]
Some find truth in beauty, others find beauty in truth.

Reply via email to