Well, my test was based on the axis user's guide:
http://ws.apache.org/axis/java/user-guide.html
and there i found the following statement:
(The <beanMapping> tag is really just shorthand for a <typeMapping> tag with
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory",
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory", and
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/", but clearly it
can save a lot of typing!)
If I've understood this right, my two statements of the first post should be
the same!!
--------------
All this is a simplification of the following enumeration type mapping
problem I have:
<typeMapping
qname="type:Status"
type="java:ch.nowhow.fhsws.types.Status"
serializer="org.apache.axis.encoding.ser.EnumSerializerFactory"
deserializer="org.apache.axis.encoding.ser.EnumDeserializerFactory"/>
I get an exception:
No serializer found for class ch.nowhow.fhsws.types.Status in
registry [EMAIL PROTECTED]
Michael
Anne Thomas Manes wrote:
>
> beanMapping only works for beans, and it uses the default bean serializer.
> You should use typeMapping for classes that aren't beans, but in that
> case, you must write your own serializer.
>
> On 5/11/07, Michael Imhof <[EMAIL PROTECTED]> wrote:
>>
>> What's the difference between typeMapping and beanMapping??
>> How can I replace a beanMapping with a typeMapping. I tried the following
>> but I get "No serializer found error" with the typeMapping!!
>>
>> Michael
>>
>> BeanMapping (That works fine)
>> =====================
>> deployment xmlns="http://xml.apache.org/axis/wsdd/"
>> xmlns:type="http://types.fhsws.nowhow.ch"
>> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>>
>> <beanMapping
>> qname="type:GetSubOwnerAccountsResponse"
>>
>> languageSpecificType="java:ch.nowhow.fhsws.types.GetSubOwnerAccountsResponse"/>
>>
>> .. service declarations ..
>> />
>>
>> TypeMapping
>> --> Error: No serializer found for class ch.nowhow.fhsws.types.Status in
>> registry [EMAIL PROTECTED]
>> =====================
>> deployment xmlns="http://xml.apache.org/axis/wsdd/"
>> xmlns:type="http://types.fhsws.nowhow.ch"
>> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>>
>> <typeMapping
>> qname="type:GetSubOwnerAccountsResponse"
>>
>> languageSpecificType="java:ch.nowhow.fhsws.types.GetSubOwnerAccountsResponse"
>> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>>
>> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
>>
>> .. service declarations ..
>> />
>> --
>> View this message in context:
>> http://www.nabble.com/TypeMapping-tf3728002.html#a10433961
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/TypeMapping-tf3728002.html#a10616741
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]