axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1664) Allow doAutoTypes to be configured through AxisProperties
Date Mon, 06 Dec 2004 14:07:25 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1664?page=comments#action_56261 ]
     
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
either.

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()),
                    			       Types.getLocalNameFromFullName(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.

Regards,
Patrick

> Allow doAutoTypes to be configured through AxisProperties
> ---------------------------------------------------------
>
>          Key: AXIS-1664
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1664
>      Project: Axis
>         Type: Improvement
>   Components: Serialization/Deserialization
>     Versions: current (nightly)
>     Reporter: Mark Chai
>  Attachments: AXIS Tests.zip, AutoTypesTest.jws, TypeMappingImpl.java
>
> 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:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message