org.apache.axis.providers.java

Class MsgProvider

Implemented Interfaces:
Handler, Serializable

public class MsgProvider
extends JavaProvider

Deal with message-style Java services. For now, these are services with exactly ONE OperationDesc, pointing to a method which looks like one of the following: public Element [] method(Vector v); (NOTE : This is silly, we should change it to either be Vector/Vector or Element[]/Element[]) public Document method(Document doc); public void method(MessageContext mc);
Authors:
Doug Davis (dug@us.ibm.com)
Glen Daniels (gdaniels@apache.org)

Field Summary

Fields inherited from class org.apache.axis.providers.java.JavaProvider

OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPE, entLog, log

Fields inherited from class org.apache.axis.providers.BasicProvider

OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACE, entLog, log

Fields inherited from class org.apache.axis.handlers.BasicHandler

makeLockable, name, options

Method Summary

void
processMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, Object obj)
Process the message.

Methods inherited from class org.apache.axis.providers.java.JavaProvider

getServiceClass, getServiceClassName, getServiceClassNameOptionName, getServiceObject, initServiceDesc, invoke, makeNewServiceObject, processMessage

Methods inherited from class org.apache.axis.providers.BasicProvider

addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames, initServiceDesc

Methods inherited from class org.apache.axis.handlers.BasicHandler

canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable

Method Details

processMessage

public void processMessage(MessageContext msgContext,
                           SOAPEnvelope reqEnv,
                           SOAPEnvelope resEnv,
                           Object obj)
            throws Exception
Process the message. Figure out the method "style" (one of the three allowed signatures, which has already been determined and cached in the OperationDesc) and do the actual invocation. Note that we don't catch exceptions here, preferring to bubble them right up through to someone who'll catch it above us.
Overrides:
processMessage in interface JavaProvider
Parameters:
msgContext - the active MessageContext
reqEnv - the request SOAPEnvelope
resEnv - the response SOAPEnvelope (we should fill this in)
obj - the service target object

Copyright © 2005 Apache Web Services Project. All Rights Reserved.