Oracle Fusion Middleware
Oracle WebLogic Server 10.3.1 API Reference
11g Release 1 (10.3.1)

Part Number E13941-02

weblogic.webservice.encoding
Class SOAPElementCodec

java.lang.Object
  extended by weblogic.webservice.encoding.AbstractCodec
      extended by weblogic.webservice.encoding.SOAPElementCodec
All Implemented Interfaces:
Deserializer, Serializer

Deprecated. please migrate to jws for webservices

public abstract class SOAPElementCodec
extends AbstractCodec


Constructor Summary
SOAPElementCodec()
          Deprecated.  
 
Method Summary
 Object deserialize(XMLName name, Attribute att, DeserializationContext context)
          Deprecated. Take an XML instance, create and populate the corresponding Object.
 Object deserialize(XMLName name, XMLInputStream reader, DeserializationContext context)
          Deprecated. Take an XML instance, create and populate the corresponding Object.
protected abstract  Object deserializeSOAPElement(SOAPElement element, DeserializationContext context)
          Deprecated. Returns a Java representation of the XML contained in the SOAPElement.
 void serialize(Object obj, XMLName name, XMLOutputStream writer, SerializationContext context)
          Deprecated. Write the given Object to an XMLOutputSteam, using the information described in the mapping, using the name parameter as the name of the resulting element.
protected abstract  SOAPElement serializeToSOAPElement(Object input, XMLName name, SOAPElement parent, SerializationContext context)
          Deprecated. Take the given input Object and return a new SOAPElement instance containing the XML representation of that Object.
 
Methods inherited from class weblogic.webservice.encoding.AbstractCodec
getDeserializerAs, getMechanismType, getSerializerAs, getSupportedMechanismTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPElementCodec

public SOAPElementCodec()
Deprecated. 
Method Detail

deserializeSOAPElement

protected abstract Object deserializeSOAPElement(SOAPElement element,
                                                 DeserializationContext context)
                                          throws SOAPFaultException
Deprecated. 
Returns a Java representation of the XML contained in the SOAPElement.

Parameters:
element - The SOAPElement object containing the XML
Returns:
Java representation of XML in element
Throws:
SOAPFaultException - If an error occurrs

serializeToSOAPElement

protected abstract SOAPElement serializeToSOAPElement(Object input,
                                                      XMLName name,
                                                      SOAPElement parent,
                                                      SerializationContext context)
                                               throws SOAPFaultException
Deprecated. 
Take the given input Object and return a new SOAPElement instance containing the XML representation of that Object.

Parameters:
input - The object to represent in XML
name - The name of the containing XML element to be written
parent - The SOAPElement that will be the parent of the resulting SOAPElement
Returns:
new SOAPElement representation of input
Throws:
SOAPFaultException - If an error occurrs

deserialize

public final Object deserialize(XMLName name,
                                XMLInputStream reader,
                                DeserializationContext context)
                         throws DeserializationException
Deprecated. 
Description copied from interface: Deserializer
Take an XML instance, create and populate the corresponding Object. deserialize may be called recusively as needed to build contained Objects thus building up the full graph of contained Objects.

Parameters:
name - The expected name of the XML element
reader - The XML stream containing the XML to deserialize
Throws:
DeserializationException - If an error occurs

deserialize

public final Object deserialize(XMLName name,
                                Attribute att,
                                DeserializationContext context)
                         throws DeserializationException
Deprecated. 
Description copied from interface: Deserializer
Take an XML instance, create and populate the corresponding Object. deserialize may be called recusively as needed to build contained Objects thus building up the full graph of contained Objects.

Parameters:
name - The expected name of the XML element
att - The attribute containing the value to deserialize
Throws:
DeserializationException - If an error occurs

serialize

public final void serialize(Object obj,
                            XMLName name,
                            XMLOutputStream writer,
                            SerializationContext context)
                     throws SerializationException
Deprecated. 
Description copied from interface: Serializer
Write the given Object to an XMLOutputSteam, using the information described in the mapping, using the name parameter as the name of the resulting element. This allows using a general Class <-> ComplexType mapping with full control over the name of the xml element to be written.

Throws:
SerializationException

Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm
Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.1 API Reference
11g Release 1 (10.3.1)

Part Number E13941-02