axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin (JIRA)" <>
Subject [jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties
Date Mon, 06 Dec 2004 14:07:25 GMT
     [ ]
Patrick Martin commented on AXIS-1664:

More Oops!

Due to shoddy work, I didn't spot that walking the fields of the return class is not required

The updated code is (goes in WebServiceRTTIProxySimple::invoke in the attached test case project)

        Class retClass = method.getReturnType();
        // need to handle only base component type
        if (retClass.isArray())
             retClass = retClass.getComponentType();
        // AAACK incomplete test for standard types
        if ( (void.class != retClass) && (int.class != retClass) )
            QName qnameRet = new QName(Namespaces.makeNamespace(retClass.getName()),
            if (!tm.isRegistered(method.getReturnType(), qnameRet))
                tm.register(retClass, qnameRet, new BeanSerializerFactory(
                        retClass, qnameRet), new BeanDeserializerFactory(
                                retClass, qnameRet));

This seems works fine to fix up missing deserialisers for return types in the client.


> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>          Key: AXIS-1664
>          URL:
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS, AutoTypesTest.jws,
> I suggest a patch that allows for an "axis.doAutoTypes" in the AxisProperties to dictate
whether or not to turn doAutoTypes on or off by default. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message