if (operationDesc.isOneWay()) {
// If the operation is one-way, then we can just return null because
// we cannot create a MessageContext for one-way responses.
return null;
} else if (faultThrown) {
message = methodMarshaller.marshalFaultResponse(fault, mc.getOperationDescription(),
requestProtocol); // Send the response using the same protocol as the request
} else if (target.getReturnType().getName().equals("void")) {
message = methodMarshaller
.marshalResponse(null, methodInputParams, mc.getOperationDescription(),
requestProtocol); // Send the response using the same protocol as the request