org.apache.axis2.receivers
public class: RawXMLINOnlyMessageReceiver [javadoc |
source]
java.lang.Object
org.apache.axis2.receivers.AbstractMessageReceiver
org.apache.axis2.receivers.AbstractInMessageReceiver
org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver
All Implemented Interfaces:
MessageReceiver
Direct Known Subclasses:
RawXMLINOnlyMessageReceiver
The RawXMLINOnlyMessageReceiver MessageReceiver hands over the raw request received to
the service implementation class as an OMElement. The implementation class is NOT
expected to return any value, but may do so and it would be ignored. This is a
synchronous MessageReceiver, and finds the service implementation class to invoke by
referring to the "ServiceClass" parameter value specified in the service.xml and
looking at the methods of the form void <
>(OMElement request)
| Method from org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver Summary: |
|---|
|
invokeBusinessLogic |
| Method from org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver Detail: |
public void invokeBusinessLogic(MessageContext msgContext) throws AxisFault {
try {
// get the implementation class for the Web Service
Object obj = getTheImplementationObject(msgContext);
// find the WebService method
Class implClass = obj.getClass();
AxisOperation op = msgContext.getAxisOperation();
Method method = findOperation(op, implClass);
if (method == null) {
throw new AxisFault(Messages.getMessage("methodDoesNotExistInOnly"));
}
method.invoke(obj,
new Object [] { msgContext.getEnvelope().getBody().getFirstElement() });
} catch (Exception e) {
throw AxisFault.makeFault(e);
}
}
Invokes the business logic invocation on the service implementation class |