Package uk.ac.starlink.votable.soap
Class AxisTableSerializer
java.lang.Object
uk.ac.starlink.votable.soap.AxisTableSerializer
- All Implemented Interfaces:
Serializable
,javax.xml.rpc.encoding.Serializer
,org.apache.axis.encoding.Serializer
Custom serializer for StarTables.
- Since:
- 23 Mar 2005
- Author:
- Mark Taylor (Starlink)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(QName name, Attributes atts, Object value, org.apache.axis.encoding.SerializationContext context) Writes table out to the serialization context as a binary-inline VOTable.writeSchema
(Class javaType, org.apache.axis.wsdl.fromJava.Types types) Returns an element containing the VOTable 1.1 schema.
-
Constructor Details
-
AxisTableSerializer
public AxisTableSerializer()
-
-
Method Details
-
serialize
public void serialize(QName name, Attributes atts, Object value, org.apache.axis.encoding.SerializationContext context) throws IOException Writes table out to the serialization context as a binary-inline VOTable.- Specified by:
serialize
in interfaceorg.apache.axis.encoding.Serializer
- Parameters:
name
- qnameatts
- attributevalue
-StarTable
objectcontext
- context- Throws:
ClassCastException
- if table is not a StarTableIOException
-
writeSchema
Returns an element containing the VOTable 1.1 schema.When this method is called by AXIS in the course of creating WSDL (using the service?wsdl URL) it results in a WRONG_DOCUMENT_ERR DOM exception. I can only imagine this is an AXIS bug, arising from AXIS not calling importNode on the returned Element.
- Specified by:
writeSchema
in interfaceorg.apache.axis.encoding.Serializer
-
getMechanismType
- Specified by:
getMechanismType
in interfacejavax.xml.rpc.encoding.Serializer
-