Found the bug in the way XmlUtils treats serialization of Elements and of XmlSerializable. When the object to be sent as reply is one of the above two, it embeds it's properties into the root of the reply and thus causes the root of the EndpointReference to be lost. I'll open a JIRA item regarding this (I have a small fix that deals with the case of the EndpointReference).
Bogdan Solomon wrote: > > > > Bogdan Solomon wrote: >> >> Sorry for the long delay, but the Muse part of the project got >> sidetracked for a bit. >> >> Tried today to return an Element from my method and then to use .toXML() >> to generate the reply. The reply sent to the client is the same, and the >> same problem exists. >> >> Here is the reply sent using .toXML() >> >> <soapenv:Body> >> <muse-op:createResponse >> >> xmlns:muse-op="http://namespace/muse/filter/factory/factoryService" >> xmlns:tns="http://axis2.platform.core.muse.apache.org"> >> >> <wsa:Address>http://9.26.109.208:9080/AutonomicFilterManager/services/FilterManager</wsa:Address> >> <wsa:ReferenceParameters> >> <muse-wsa:ResourceId >> xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-7</muse-wsa:ResourceId> >> </wsa:ReferenceParameters> >> </muse-op:createResponse> >> </soapenv:Body> >> >> The changes in naming come from having regenerated the project using >> TPTP, and I had to change some names. >> Doing a System.out on the Element returned by .toXML() it looks like >> this: >> >> [wsa:EndpointReference: null] >> >> so, I guess the problem is with the EPR.toXML() method. >> >> > > Actually that value is Ok, as it should be an EndpointReference, I thought > it was printing the Address as the root, as it does client side. > > So the Element returned is correct, but it gets stripped before it reaches > the client; I guess the problem might be inside the Axis serialization > code, so I'll dig around some more. > > -- View this message in context: http://www.nabble.com/Serialization-problem-tf2841378.html#a11583617 Sent from the Muse User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
