uk.ac.starlink.votable.soap
Class AxisTableSerializer

java.lang.Object
  extended by uk.ac.starlink.votable.soap.AxisTableSerializer
All Implemented Interfaces:
Serializable, javax.xml.rpc.encoding.Serializer

public class AxisTableSerializer
extends Object
implements org.apache.axis.encoding.Serializer

Custom serializer for StarTables.

Since:
23 Mar 2005
Author:
Mark Taylor (Starlink)
See Also:
Serialized Form

Constructor Summary
AxisTableSerializer()
           
 
Method Summary
 String getMechanismType()
           
 void serialize(javax.xml.namespace.QName name, Attributes atts, Object value, org.apache.axis.encoding.SerializationContext context)
          Writes table out to the serialization context as a binary-inline VOTable.
 Element writeSchema(Class javaType, org.apache.axis.wsdl.fromJava.Types types)
          Returns an element containing the VOTable 1.1 schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisTableSerializer

public AxisTableSerializer()
Method Detail

serialize

public void serialize(javax.xml.namespace.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.

Parameters:
name - qname
atts - attribute
value - StarTable object
context - context
Throws:
ClassCastException - if table is not a StarTable
IOException

writeSchema

public Element writeSchema(Class javaType,
                           org.apache.axis.wsdl.fromJava.Types types)
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.


getMechanismType

public String getMechanismType()
Specified by:
getMechanismType in interface javax.xml.rpc.encoding.Serializer


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.