/** * Gets only the published operations. */ public ArrayList<AxisOperation> getPublishedOperations() { Iterator<AxisOperation> op_itr = getOperations(); ArrayList<AxisOperation> operationList = new ArrayList<AxisOperation>(); while (op_itr.hasNext()) { AxisOperation operation = (AxisOperation) op_itr.next(); if (!operation.isControlOperation()) { operationList.add(operation); } } return operationList; }
/** * Gets the control operation which are added by module like RM. */ public ArrayList<AxisOperation> getControlOperations() { Iterator<AxisOperation> op_itr = getOperations(); ArrayList<AxisOperation> operationList = new ArrayList<AxisOperation>(); while (op_itr.hasNext()) { AxisOperation operation = (AxisOperation) op_itr.next(); if (operation.isControlOperation()) { operationList.add(operation); } } return operationList; }
/** * Gets only the published operations. */ public ArrayList<AxisOperation> getPublishedOperations() { Iterator<AxisOperation> op_itr = getOperations(); ArrayList<AxisOperation> operationList = new ArrayList<AxisOperation>(); while (op_itr.hasNext()) { AxisOperation operation = (AxisOperation) op_itr.next(); if (!operation.isControlOperation()) { operationList.add(operation); } } return operationList; }
/** * Gets the control operation which are added by module like RM. */ public ArrayList<AxisOperation> getControlOperations() { Iterator<AxisOperation> op_itr = getOperations(); ArrayList<AxisOperation> operationList = new ArrayList<AxisOperation>(); while (op_itr.hasNext()) { AxisOperation operation = (AxisOperation) op_itr.next(); if (operation.isControlOperation()) { operationList.add(operation); } } return operationList; }
private boolean generateWsdl(AxisService axisService) { Iterator operatins = axisService.getOperations(); if (operatins.hasNext()) { while (operatins.hasNext()) { AxisOperation axisOperation = (AxisOperation) operatins.next(); if (axisOperation.isControlOperation()) { continue; } if (axisOperation.getMessageReceiver() == null) { continue; } String messageReceiverClass = axisOperation .getMessageReceiver().getClass().getName(); if (!("org.apache.axis2.rpc.receivers.RPCMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.jaxws.server.JAXWSMessageReceiver" .equals(messageReceiverClass))) { return false; } } } return true; }
private boolean generateWsdl(AxisService axisService) { Iterator operatins = axisService.getOperations(); if (operatins.hasNext()) { while (operatins.hasNext()) { AxisOperation axisOperation = (AxisOperation) operatins.next(); if (axisOperation.isControlOperation()) { continue; } if (axisOperation.getMessageReceiver() == null) { continue; } String messageReceiverClass = axisOperation .getMessageReceiver().getClass().getName(); if (!("org.apache.axis2.rpc.receivers.RPCMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.rpc.receivers.RPCInOutAsyncMessageReceiver" .equals(messageReceiverClass) || "org.apache.axis2.jaxws.server.JAXWSMessageReceiver" .equals(messageReceiverClass))) { return false; } } } return true; }
while (operations.hasNext()) { AxisOperation axisOperation = (AxisOperation) operations.next(); if (axisOperation.isControlOperation()) { continue;
while (operations.hasNext()) { AxisOperation axisOperation = (AxisOperation) operations.next(); if (axisOperation.isControlOperation()) { continue;
private static void generateDefaultSOAPBindingOperations(AxisService axisService, OMFactory omFactory, OMElement binding, OMNamespace wsdl, OMNamespace tns, OMNamespace wsoap) { Iterator iterator = axisService.getChildren(); while (iterator.hasNext()) { AxisOperation axisOperation = (AxisOperation) iterator.next(); if (axisOperation.isControlOperation()) { continue; } OMElement opElement = omFactory.createOMElement(WSDL2Constants.OPERATION_LOCAL_NAME, wsdl); binding.addChild(opElement); String name = axisOperation.getName().getLocalPart(); opElement.addAttribute(omFactory.createOMAttribute(WSDL2Constants.ATTRIBUTE_REF, null, tns.getPrefix() + ":" + name)); String soapAction = axisOperation.getSoapAction(); if (soapAction != null) { opElement.addAttribute(omFactory.createOMAttribute(WSDL2Constants.ATTRIBUTE_ACTION, wsoap, soapAction)); } } }
while (iterator.hasNext()) { AxisOperation axisOperation = (AxisOperation) iterator.next(); if (axisOperation.isControlOperation()) { continue;
private static void generateDefaultSOAPBindingOperations(AxisService axisService, OMFactory omFactory, OMElement binding, OMNamespace wsdl, OMNamespace tns, OMNamespace wsoap) { Iterator iterator = axisService.getChildren(); while (iterator.hasNext()) { AxisOperation axisOperation = (AxisOperation) iterator.next(); if (axisOperation.isControlOperation()) { continue; } OMElement opElement = omFactory.createOMElement(WSDL2Constants.OPERATION_LOCAL_NAME, wsdl); binding.addChild(opElement); String name = axisOperation.getName().getLocalPart(); opElement.addAttribute(omFactory.createOMAttribute(WSDL2Constants.ATTRIBUTE_REF, null, tns.getPrefix() + ":" + name)); String soapAction = axisOperation.getSoapAction(); if (soapAction != null) { opElement.addAttribute(omFactory.createOMAttribute(WSDL2Constants.ATTRIBUTE_ACTION, wsoap, soapAction)); } } }
private boolean isAckRequired() { // This condition is a bit complex but cannot simplify any further. if (msgContext != null) { if (msgContext.getOperationContext() != null && (!msgContext.getOperationContext().getAxisOperation().isControlOperation() || msgContext.isPropertyTrue(NhttpConstants.FORCE_SC_ACCEPTED))) { return true; } else if (msgContext.isPropertyTrue("NIO-ACK-Requested", false)) { return true; } } return false; }
while (iterator.hasNext()) { AxisOperation axisOperation = (AxisOperation) iterator.next(); if (axisOperation.isControlOperation()) { continue;
if(axisOperation != null && axisOperation.isControlOperation()){ return InvocationResponse.CONTINUE;
AxisOperation axisOperation = axisBindingOperation .getAxisOperation(); if (axisOperation.isControlOperation() || axisOperation.getName() == null) { continue;
if (opContext != null && opContext.isComplete()) { AxisOperation axisOp = opContext.getAxisOperation(); if (axisOp != null && axisOp.isControlOperation()) { return;
AxisOperation axisOperation = axisBindingOperation .getAxisOperation(); if (axisOperation.isControlOperation() || axisOperation.getName() == null) { continue;
.hasNext();) { AxisOperation axisOperation = (AxisOperation) operations.next(); if (axisOperation.isControlOperation() || axisOperation.getName() == null) { continue;
.hasNext();) { AxisOperation axisOperation = (AxisOperation) operations.next(); if (axisOperation.isControlOperation() || axisOperation.getName() == null) { continue;
opMetaData.setControlOperation(axisOperation.isControlOperation()); Parameter parameter = axisOperation.getParameter(Constants.Configuration.ENABLE_MTOM); if (parameter != null) {