Using Muse 2.2.0 I get the following response body to a request:
<soapenv:Body>
<muse-op:CreateResponse
xmlns:muse-op="http://namespace/muse/filter/factory"
xmlns:tns="http://axis2.platform.core.muse.apache.org"><wsa:Address>http://192.168.32.23:9082/FilterManagerMuse/services/FilterManager</wsa:Address>
<wsa:ReferenceParameters>
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing">uuid:7ef949d0-ac70-56e7-8f59-1d4c2781bfe3</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</muse-op:CreateResponse>
</soapenv:Body>
Trying to create an EndpointReference from the XML directly results in a
NullPointerException as the wsa:Address is null according to the
constructor.
I have solved the problem for the moment by reading the XML by hand and
generating an EPR from the address and then adding the parameter that I get,
but this is rather messy as I have to do something like this:
xml.getNextSibling().getNextSibling().getFirstChild().getNextSibling().getFirstChild()
to obtain the reference parameter.
So I was wondering if there is a problem with the way my EPR is being
returned or if it is invalid.
Daniel Jemiolo wrote:
>
>
> To make an EndpointReference serializer, try the following code:
>
>
> public class EndpointReferenceSerializer extends XmlSerializableSerializer
> {
> public Class getSerializableType()
> {
> return EndpointReference.class;
> }
>
> public Object fromXML(Element xml)
> {
> return new EndpointReference(xml);
> }
> }
>
>
>
> and then, in your startup code:
>
> SerializerRegistry reg = SerializerRegistry.getInstance();
> reg.registerSerializer(EndpointReference.class, new
> EndpointReferenceSerializer());
>
>
--
View this message in context:
http://www.nabble.com/Serialization-problem-tf2841378.html#a11008733
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]