axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <>
Subject Re: Custom deserializer
Date Tue, 12 Feb 2002 16:04:13 GMT
The Axis encoding framework has changed.
You should update your version of Axis, and make necesary changes to your

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)

                      "Koen Weyn"                                                        
                      <        To:       <>
                      >                        cc:                                    
                                               Subject:  Custom deserializer             
                      02/12/2002 05:44                                                   
                      Please respond to                                                  

Hello all,

I have written a custom deserializer, but I can't seem to let it get used
The deserializer extends org.apache.axis.encoding.Deserializer and I
it as follows:

MessageContext msgContext = new MessageContext(new AxisServer());
TypeMappingRegistry reg = msgContext.getTypeMappingRegistry();
QName qName = new QName        ("
reg.addDeserializerFactory(qName, QueryServicesResult.class,
DeserializationContext dser = new DeserializationContext(
             new InputSource(new FileReader("services_out2.xml")),
             msgContext, Message.RESPONSE);

Below are the (snipped) contents of services_out2.xml. This is a response I
capped from a .NET engine I am trying to communicate with.
Does anybody have a clue why my ProviderDeserializerFactory.getDeserializer
isn't called ?

I have tried omitting the namespace, but that didn't work either.

For this sample, I could do without custom deserialization, but for other
calls I can't.

Setting the response type is an option, I only want to use when everything
else fails.

Thanks in advance,



<soap:Envelope xmlns:soap=""
    <QueryServicesResponse xmlns="">

+ Koen Weyn
+ Planet Internet NV
+ A: Rijnkaai 37, B-2000 Antwerpen
+ E:
+ W:

View raw message