org.apache.axis.message

Class RPCHandler

public class RPCHandler extends SOAPHandler

This is the SOAPHandler which is called for each RPC parameter as we're deserializing the XML for a method call or return. In other words for this XML: Hello! 3.14159 ...we'll get onStartChild() events for and .

Author: Glen Daniels (gdaniels@apache.org)

Field Summary
protected static Loglog
Constructor Summary
RPCHandler(RPCElement rpcElem, boolean isResponse)
Method Summary
voidendElement(String namespace, String localName, DeserializationContext context)
SOAPHandleronStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context)
Register the start of a parameter (child element of the method call element).
voidsetHeaderElement(boolean value)
Indicate RPCHandler is processing header elements
voidsetOperation(OperationDesc myOperation)
voidstartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context)
This method is invoked when an element start tag is encountered.

Field Detail

log

protected static Log log

Constructor Detail

RPCHandler

public RPCHandler(RPCElement rpcElem, boolean isResponse)

Method Detail

endElement

public void endElement(String namespace, String localName, DeserializationContext context)

onStartChild

public SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context)
Register the start of a parameter (child element of the method call element). Our job here is to figure out a) which parameter this is (based on the QName of the element or its position), and b) what type it is (based on the xsi:type attribute or operation metadata) so we can successfully deserialize it.

setHeaderElement

public void setHeaderElement(boolean value)
Indicate RPCHandler is processing header elements

Parameters: value boolean indicating whether header elements are being processed.

setOperation

public void setOperation(OperationDesc myOperation)

startElement

public void startElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context)
This method is invoked when an element start tag is encountered. The purpose of this method in RPCHandler is to reset variables (this allows re-use of RPCHandlers)

Parameters: namespace is the namespace of the element localName is the name of the element prefix is the prefix of the element attributes are the attributes on the element...used to get the type context is the DeserializationContext

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.