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]
