I know that some kind soul out there has successfully combined Castor XML
Binding with Axis Web Services, by writing Custom Axis CastorSerializer and
CastorDeserializer classes.
I was wondering if anyone has done or tried the same yet for Weblogic 8.1
Webservices ?
I think one approach would be to write a subclass of Weblogic's :-
weblogic.webservice.encoding.AbstractCodec which implements
weblogic.xml.schema.binding.Serializer which extends
javax.xml.rpc.encoding.Serializer
The serializing from Castor to XML looks possible (maybe?) taking the
received Object ( a castor class) and marshalling the XML stream, but the
deserializing looks more difficult given that weblogic recommend extending
their weblogic.webservice.encoding.AbstractCodec class where the method :-
deserialize(XMLName name, XMLInputStream reader, DeserializationContext
context)
receives an XMLInputStream which is part of the WebLogic XML Streaming API
and is supposed to be more efficient then SAX or DOM parsing.
I'm not sure if there is a way of getting a DOM from XMLInputStream -
probably not.
Alternatively could castor optionally use the WebLogic XML Streaming - I
guess not ?
The reason for trying to plug in Castor is that Weblogic's own XML binding
types lack validation and full schema support.
Any ideas appreciated.
Pete
This transmission is confidential and intended solely for the person or
organisation to whom it is addressed. It may contain privileged and
confidential information. If you are not the intended recipient, you should
not copy, distribute or take any action in reliance on it. If you have
received this transmission in error, please notify the sender immediately.
Any opinions or advice contained in this e-mail are those of the individual
sender except where they are stated to be the views of RDF Group or EMS plc.
All messages passing through this gateway are virus scanned.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev