David,
I'm about to do this myself, with the exception of using my own set of
CastorSerializer classes so that it will look for my custom mapping. So
I'm very interested in this topic. I wonder if the encodingStyle should be
somthing else?
Have you confirmed that the (un)marshalling process is successful external
to the serialization framework? I've noticed that the default binding for
source code generation in Castor does not always (in my case never) matches
with the default mapping. But maybe that is because I don't let it add
Castor code to my JavaBeans.
Please keep us posted on your progress!
Cheers.
Steve Maring
David Kocher
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
rve.ch> cc:
07/31/2003 10:02 Subject: encoding.ser.castor
AM
Please respond to
axis-user
Hi axis-users,
yet another question (...) I'm just tinkering around with the
org.apache.axis.encoding.ser.castor.* classes. I have type mappings in my
axis deployment descriptor like the following:
<typeMapping
xmlns:ns="
http://www.suva.ch/schemas/20030722/SalaryDeclaration"
qname="ns:CompanyType"
type="java:ch.itserve.lohnstandard.piv.CompanyType
"
serializer
="org.apache.axis.encoding.ser.castor.CastorSerializerFactory"
deserializer
="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory"
encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"
/>
All beans are autogenerated classes from the castor. When trying to deploy
the
service with the AdminClient I get a classcastexception I cannot understand
[java] Exception:: org.apache.axis.deployment.wsdd.WSDDException:
java.lang.ClassCastException
[java] java.lang.ClassCastException
[java] at
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:257)
[java] at
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:549)
Is it supposed to work?
Thanks a lot!
-David
_________________________________________________________________
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the
intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any
computer.