public class RPCProvider extends JavaProvider
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
entLog, OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_SCOPE
OPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACE
makeLockable, name, options
Constructor and Description |
---|
RPCProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkMethodName(MessageContext msgContext,
String allowedMethods,
String methodName)
Throw an AxisFault if the requested method is not allowed.
|
protected RPCElement |
createResponseBody(RPCElement body,
MessageContext msgContext,
OperationDesc operation,
ServiceDesc serviceDesc,
Object objRes,
SOAPEnvelope resEnv,
ArrayList outs) |
protected RPCElement |
getBody(SOAPEnvelope reqEnv,
MessageContext msgContext) |
protected OperationDesc |
getOperationDesc(MessageContext msgContext,
RPCElement body) |
protected Object |
invokeMethod(MessageContext msgContext,
Method method,
Object obj,
Object[] argValues)
This method encapsulates the method invocation.
|
void |
processMessage(MessageContext msgContext,
SOAPEnvelope reqEnv,
SOAPEnvelope resEnv,
Object obj)
Process the current message.
|
getServiceClass, getServiceClassName, getServiceClassNameOptionName, getServiceObject, initServiceDesc, invoke, makeNewServiceObject
addOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNames
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
public void processMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, Object obj) throws Exception
processMessage
in class JavaProvider
msgContext
- self-explanatoryreqEnv
- the request enveloperesEnv
- the response envelopeobj
- the service object itselfException
protected RPCElement getBody(SOAPEnvelope reqEnv, MessageContext msgContext) throws Exception
Exception
protected OperationDesc getOperationDesc(MessageContext msgContext, RPCElement body) throws SAXException, AxisFault
SAXException
AxisFault
protected RPCElement createResponseBody(RPCElement body, MessageContext msgContext, OperationDesc operation, ServiceDesc serviceDesc, Object objRes, SOAPEnvelope resEnv, ArrayList outs) throws Exception
Exception
protected Object invokeMethod(MessageContext msgContext, Method method, Object obj, Object[] argValues) throws Exception
msgContext
- MessageContextmethod
- the target method.obj
- the target objectargValues
- the method argumentsException
protected void checkMethodName(MessageContext msgContext, String allowedMethods, String methodName) throws Exception
msgContext
- MessageContextallowedMethods
- list of allowed methodsmethodName
- name of target methodException
Copyright © The Apache Software Foundation. All Rights Reserved.