You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Deepal Jayasinghe <de...@opensource.lk> on 2005/10/14 05:06:08 UTC

[Axis2] Registering TypeMapping

Hi all;

To support RPC , it  requires a way to configure type mappers to serialize and deserialize (if the objects are not simple type or JavaBeans), my idea is to add following XML tag into services.xml to configure that.

   <typeMapping>
        <typeMapper xsiType="int" javaType="java.lang.Integer" class="org.apache.axis2.rpc.TypeMapperImpl"/>
    </typeMapping>

And ServiceDescription has a map two maps to store TypeMappers , and those type mappers are accessed by RPCMessageReceiver depending on the xsi:type attribute.


Thanks,
 Deepal
................................................................
~Future is Open~

Re: [Axis2] Registering TypeMapping

Posted by Davanum Srinivas <da...@gmail.com>.
Deepal,

can u please check what we had in Axis 1.X?

thanks,
dims

On 10/13/05, Deepal Jayasinghe <de...@opensource.lk> wrote:
>
> Hi all;
>
> To support RPC , it  requires a way to configure type mappers to serialize
> and deserialize (if the objects are not simple type or JavaBeans), my idea
> is to add following XML tag into services.xml to configure that.
>
>    <typeMapping>
>         <typeMapper xsiType="int" javaType="java.lang.Integer"
> class="org.apache.axis2.rpc.TypeMapperImpl"/>
>     </typeMapping>
>
> And ServiceDescription has a map two maps to store TypeMappers , and those
> type mappers are accessed by RPCMessageReceiver depending on the xsi:type
> attribute.
>
>
> Thanks,
>  Deepal
> ................................................................
> ~Future is Open~
>


--
Davanum Srinivas : http://wso2.com/blogs/