http://www.nabble.com/file/p21673751/Muse.java Muse.java 

Hi,

It seems muse has some issues with marshal/unmarshal the ManagementEvent
object. I created a Management event object, marshaled it to XML, the
unmarshaled back to object. It seems the new object was not constructed
correctly. 

Here are the xml representation of these two objects, and you can see there
are duplicated "<muws1:ComponentAddress>" tags and the "resourceId" is
missing.

original event:
<muws1:ManagementEvent
    xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd";
ReportTime="2009-01-26T12:41:40-08:00">
    <muws1:EventId>uuid:1f510f40-69ba-4d6c-a7b1-6141963a8145</muws1:EventId>
    <muws1:SourceComponent>
        <muws1:ComponentAddress>
            <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing";>
               
<wsa:Address>http://localhost/my-resources/services/event-publisher</wsa:Address>
            </wsa:EndpointReference>
        </muws1:ComponentAddress>
        <muws1:ResourceId>1234-56-7890</muws1:ResourceId>
    </muws1:SourceComponent>
</muws1:ManagementEvent>

new event:
<muws1:ManagementEvent
    xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd";
ReportTime="2009-01-26T12:41:40-08:00">
    <muws1:EventId>uuid:1f510f40-69ba-4d6c-a7b1-6141963a8145</muws1:EventId>
    <muws1:SourceComponent>
        <muws1:ComponentAddress>
            <muws1:ComponentAddress>
                <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing";>
                   
<wsa:Address>http://localhost/my-resources/services/event-publisher</wsa:Address>
                </wsa:EndpointReference>
            </muws1:ComponentAddress>
        </muws1:ComponentAddress>
    </muws1:SourceComponent>
</muws1:ManagementEvent>

The test java file is attached.

-thanks


-- 
View this message in context: 
http://www.nabble.com/Invalid-XML-Object-mapping-tp21673751p21673751.html
Sent from the Muse User mailing list archive at Nabble.com.

Reply via email to