Writing a Castor mapping.xml is not the problem. Doing that externally is fairly trivial. The problem seems to be that the current CastorSerializer and CastorDeserializer do not look for any kind of mapping file in the classpath to allow for custom mappings. The process of registering factories for a given TypeMapping does not allow for passing any kind of initialization parameters to a Serializer or Deserializer. Since the Castor Docs typically refer to the mapping by the name "mapping.xml", perhaps the Castor impl of the serialization framework should look for a custom mapping file named "mapping.xml" before deciding on the use of the static Castor methods that run with the default Castor mapping. Ala:
... Mapping mapping = new Mapping(); mapping.loadMapping( "mapping.xml" ); ... I have not confirmed this, but I find it highly unlikely that the default Castor mappings will work with JavaBeans generated from arbitrary XML Schemas referenced in a WSDL <types> and run through the WSDL2Java. Forgive my lack of faith for things being that simple. :) Cheers Steve Maring "George Jagodzinski" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED] cc: .com> Subject: RE: serializer.serialize() and org.xml.sax.Attributes 07/22/2003 03:25 PM Please respond to axis-user take a look at the castor tests located at castor\src\tests\MasterTestSuite\xml\mapping\ Just remember (this is the most common mistake) you can not use the static methods of the marshaller if you are planning on assigning any mappings etc... http://castor.exolab.org/xml-mapping.html has all the info you need -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 3:10 PM To: [EMAIL PROTECTED] Subject: RE: serializer.serialize() and org.xml.sax.Attributes Thanks for the envite Dims. If I can figure out how to write a JiBXSerializer, JiBXSerializerFactory, JiBXDeserializer, and JiBXDeserializerFactory, then I will certainly do that. The Castor ones look to be pretty straight forward and don't seem to ask for any SOAP message context data. However, I'd have to play with this a bit, I don't see how one could define the Castor mapping with an XML file. Steve Maring _________________________________________________________________ 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.