Castor performs translations from xsd types to Java objects. Be aware that
if you're using SOAP encoding, you don't have a schema for the SOAP message.
I notice that you're using SOAP encoding. I suggest you try using
doc/literal instead. You may have to resort to using a MESSAGE style
service, though.

And by the way, in regard to the referenced documentation... The JAX-RPC
spec defines type mapping rules for SOAP encoding. It doesn't define mapping
rules for doc/literal (types).

Anne

----- Original Message -----
From: "David Kocher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "James Cowan" <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 6:49 AM
Subject: Re: encoding.ser.castor


> On Thursday 31 July 2003 18:47, James Cowan wrote:
> > I am interested in this as well. I use the Castor xsd compiler a lot -
it
> > generates really nice code.
>
> That's what is my impression as well. If I could use the castor generated
code
> on the axis side as well this would be very convenient. Otherwise I
suppose I
> might be forced to write a bridge between the axis and castor objects.
>
> >
> > I do not really understand how you can use the castor compiler alongside
> > the wsdl compiler - surely you can only use one or the other or am I
> > missing the point?
>
> That's my point. I would like to use only castor because it does a good
job in
> translating the xsd schema rules. Becaue the castor objects do follow the
> bean pattern it should be possible to integrate them into axis as
described
> in
>
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide.h
tml#DataMapping
>
> Someone out there who can explain what I am missing that my typeMapping
below
> doesn't work?
>
> Thanks a lot
> - David
>
> >
> > James
> >
> > ----- Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 31, 2003 4:05 PM
> > Subject: Re: encoding.ser.castor
> >
> > > 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(BaseSerial
> >i zerFactory.java:257)
> >
> > >      [java]     at
> >
> >
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.j
> >a va: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.
>

Reply via email to