HI,

this is currently not possible with Castor XML. Whilst on the
unmarshalling side this could be achievable, it would cause complete
chaos on the marshalling side of things. What XML element would you
Castor expect to use when you marshalled an instance of
com.mycomp.pkg.Class".

I hope this helps.

Kind Regards
Werner Guttmann

On 14.07.2011 11:10, mdaoud wrote:
> 
> Hi guys,
> 
> I am quite new to use Castor and i would really appreciate if you can guide
> me to solve my problem.
> Basically, I am integrating Castor with Spring-ws. I would like to map
> multiple xml (SOAP requests) to the same class. when i try to define
> something like the code below, i get an error saying the class already in
> use! any way to solve this?
> 
> <class name="com.mycomp.pkg.Class">
>     <map-to xml="firstSOAPRequest"/>
>     <field name="name" type="string">
>         <bind-xml name="Name" node="element"/>
>     </field>
>     <field name="address" type="string">
>         <bind-xml name="Address" node="element"/>
>     </field>
> </class>
> 
> <class name="com.mycomp.pkg.Class">
>     <map-to xml="secondSOAPRequest"/>
>     <field name="name" type="string">
>         <bind-xml name="Name" node="element"/>
>     </field>
> </class>
> 
> Thanks in advance,

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to