public void addOperation(AxisOperation axisOperation) { operations.put(axisOperation.getName(), axisOperation); }
/** * Get the name associated with the operation. * * @return The name String */ public String getOperationName() { String opName = null; if (axisOperation != null) { QName qname = axisOperation.getName(); if (qname != null) { opName = qname.getLocalPart(); } } return opName; }
public void addOperation(AxisOperation axisOperation) { operations.put(axisOperation.getName(), axisOperation); }
/** * Get the name associated with the operation. * * @return The name String */ public String getOperationName() { String opName = null; if (axisOperation != null) { QName qname = axisOperation.getName(); if (qname != null) { opName = qname.getLocalPart(); } } return opName; }
public synchronized void addMapping(String sequenceID, AxisOperation axisOperation){ System.out.println("Registering sequence ID " + sequenceID + " for axis operation " + axisOperation.getName()); this.sequenceIDAxisOperationMap.put(sequenceID, axisOperation); }
public static boolean isDuplicateInOutMessage(MessageContext msgContext) { AxisOperation operation = msgContext.getAxisOperation(); String localName = operation.getName().getLocalPart(); if(localName.equals(Sandesha2Constants.RM_DUPLICATE_IN_OUT_OPERATION.getLocalPart())){ return true; } return false; }
public static boolean isDuplicateInOnlyMessage(MessageContext msgContext) { AxisOperation operation = msgContext.getAxisOperation(); String localName = operation.getName().getLocalPart(); if(localName.equals(Sandesha2Constants.RM_DUPLICATE_IN_ONLY_OPERATION.getLocalPart())){ return true; } return false; }
protected String getOperationName(MessageContext inMsg) throws AxisFault { AxisOperation op = inMsg.getOperationContext().getAxisOperation(); if (op == null) { throw new AxisFault( "Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider"); } String operationName = null; if ((op.getName() == null) || ((operationName = JavaUtils.xmlNameToJava(op.getName().getLocalPart())) == null)) { throw new AxisFault("invalid operation found"); } return operationName; }
protected String getOperationName(MessageContext inMsg) throws AxisFault { AxisOperation op = inMsg.getOperationContext().getAxisOperation(); if (op == null) { throw new AxisFault( "Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider"); } String operationName = null; if ((op.getName() == null) || ((operationName = JavaUtils.xmlNameToJava(op.getName().getLocalPart())) == null)) { throw new AxisFault("invalid operation found"); } return operationName; }
public static AxisBindingOperation getBindingOperation(AxisBinding binding, AxisOperation operation) { QName opName = operation.getName(); for (Iterator bindingOps = binding.getChildren(); bindingOps.hasNext();) { AxisBindingOperation bindingOp = (AxisBindingOperation)bindingOps.next(); if (opName.equals(bindingOp.getName())) { return bindingOp; } } return null; }
protected String getOperationName(MessageContext inMsg) throws AxisFault { org.apache.axis2.description.AxisOperation op = inMsg.getOperationContext().getAxisOperation(); if (op == null) { throw new AxisFault( "Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider"); } java.lang.String operationName = null; if ((op.getName() == null) || ((operationName = org.apache.axis2.util.JavaUtils.xmlNameToJava(op.getName().getLocalPart())) == null)) { throw new AxisFault("invalid operation found"); } return operationName; }
private AxisOperation getAxisOperation(AxisService axisService, String opName) { AxisOperation axisOperation = new OutInAxisOperation();//Default if(axisService != null) { for (Iterator<?> i = axisService.getOperations(); i.hasNext();) { AxisOperation axisOp = (AxisOperation) i.next(); if(axisOp.getName().getLocalPart().equals(opName)) { axisOperation = axisOp; break; } } } return axisOperation; }
protected String getOperationName(MessageContext inMsg) throws AxisFault { org.apache.axis2.description.AxisOperation op = inMsg.getOperationContext().getAxisOperation(); if (op == null) { throw new AxisFault( "Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider"); } java.lang.String operationName = null; if ((op.getName() == null) || ((operationName = org.apache.axis2.util.JavaUtils.xmlNameToJava(op.getName().getLocalPart())) == null)) { throw new AxisFault("invalid operation found"); } return operationName; }
public static AxisBindingOperation getBindingOperation(AxisBinding binding, AxisOperation operation) { QName opName = operation.getName(); for (Iterator bindingOps = binding.getChildren(); bindingOps.hasNext();) { AxisBindingOperation bindingOp = (AxisBindingOperation)bindingOps.next(); if (opName.equals(bindingOp.getName())) { return bindingOp; } } return null; }
public void removeOperation(QName opName) { AxisOperation operation = getOperation(opName); if (operation != null) { removeChild(opName); ArrayList<String> mappingList = operation.getWSAMappingList(); if (mappingList != null) { for (int i = 0; i < mappingList.size(); i++) { String actionMapping = (String) mappingList.get(i); operationsAliasesMap.remove(actionMapping); invalidOperationsAliases.remove(actionMapping); } } operationsAliasesMap.remove(operation.getName().getLocalPart()); invalidOperationsAliases.remove(operation.getName().getLocalPart()); } }
/** * Remove any operations which were added by a given module. * * @param module * the module in question */ private void removeModuleOperations(AxisModule module) { HashMap<QName, AxisOperation> moduleOperations = module.getOperations(); if (moduleOperations != null) { for (Iterator<AxisOperation> modOpsIter = moduleOperations.values().iterator(); modOpsIter .hasNext();) { AxisOperation operation = (AxisOperation) modOpsIter.next(); removeOperation(operation.getName()); } } }
public void receive(MessageContext requestMessageContext) throws AxisFault { String operationName = requestMessageContext.getOperationContext().getAxisOperation().getName().getLocalPart(); AxisEngine.send(processorMap.get(operationName).process(requestMessageContext)); } }
private static Operation getOperation(AxisOperation axisOp,WebServiceBinding wsBinding) { String operationName = axisOp.getName().getLocalPart(); Interface iface = wsBinding.getBindingInterfaceContract().getInterface(); for (Operation op : iface.getOperations()) { if (op.getName().equalsIgnoreCase(operationName)) { return op; } } return null; }
/** * Creates AxisBindingOperation and populates it with HTTP properties */ private AxisBindingOperation createDefaultHTTPBindingOperation( AxisOperation axisOp, String httpLocation, String httpMethod, AxisBinding httpBinding) { AxisBindingOperation httpBindingOperation = new AxisBindingOperation(); httpBindingOperation.setAxisOperation(axisOp); httpBindingOperation.setName(axisOp.getName()); httpBindingOperation.setParent(httpBinding); httpBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); httpBindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_METHOD, httpMethod); httpBinding.addChild(httpBindingOperation.getName(), httpBindingOperation); return httpBindingOperation; }
/** * Creates AxisBindingOperation and populates it with SOAP 1.1 properties */ private AxisBindingOperation createDefaultSOAP11BindingOperation( AxisOperation axisOp, String httpLocation, String inputAction, AxisBinding soap11Binding) { AxisBindingOperation soap11BindingOperation = new AxisBindingOperation(); soap11BindingOperation.setAxisOperation(axisOp); soap11BindingOperation.setName(axisOp.getName()); soap11BindingOperation.setParent(soap11Binding); soap11BindingOperation.setProperty(WSDL2Constants.ATTR_WHTTP_LOCATION, httpLocation); soap11Binding.addChild(soap11BindingOperation.getName(), soap11BindingOperation); soap11BindingOperation.setProperty(WSDL2Constants.ATTR_WSOAP_ACTION, inputAction); return soap11BindingOperation; }