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_SCOPEOPTION_EXTRACLASSES, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_SOAPACTION_MODE, OPTION_WSDL_TARGETNAMESPACEmakeLockable, 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, makeNewServiceObjectaddOperation, generateWSDL, getOperationName, getOperationNames, getOperationQNamescanHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockablepublic void processMessage(MessageContext msgContext, SOAPEnvelope reqEnv, SOAPEnvelope resEnv, Object obj) throws Exception
processMessage in class JavaProvidermsgContext - self-explanatoryreqEnv - the request enveloperesEnv - the response envelopeobj - the service object itselfExceptionprotected RPCElement getBody(SOAPEnvelope reqEnv, MessageContext msgContext) throws Exception
Exceptionprotected OperationDesc getOperationDesc(MessageContext msgContext, RPCElement body) throws SAXException, AxisFault
SAXExceptionAxisFaultprotected RPCElement createResponseBody(RPCElement body, MessageContext msgContext, OperationDesc operation, ServiceDesc serviceDesc, Object objRes, SOAPEnvelope resEnv, ArrayList outs) throws Exception
Exceptionprotected Object invokeMethod(MessageContext msgContext, Method method, Object obj, Object[] argValues) throws Exception
msgContext - MessageContextmethod - the target method.obj - the target objectargValues - the method argumentsExceptionprotected void checkMethodName(MessageContext msgContext, String allowedMethods, String methodName) throws Exception
msgContext - MessageContextallowedMethods - list of allowed methodsmethodName - name of target methodExceptionCopyright © The Apache Software Foundation. All Rights Reserved.