if (op == null || !op.hasOutput() || op.getOutput().size() == 0) { return;
/** * TODO should we really use the consume MEP if it does not specify an operation...?! */ private static MEPPatternConstants getMEP(final OperationInfo op, final Consumes consume) { if (!op.hasOutput()) { // let's consider the consume could be used to force the MEP if (op.hasFaults() || (consume != null && consume.getMep() == MEPType.ROBUST_IN_ONLY)) { return MEPPatternConstants.ROBUST_IN_ONLY; } else { return MEPPatternConstants.IN_ONLY; } } else { // TODO not sure how to determine if it's inout or inoptout from the info... // but at least we can consider the consume could be used to force it if (consume != null && consume.getMep() == MEPType.IN_OPTIONAL_OUT) { return MEPPatternConstants.IN_OPTIONAL_OUT; } else { return MEPPatternConstants.IN_OUT; } } } }
protected Collection<JavaClass> generateBeanClasses(final ServiceInfo serviceInfo) { Collection<JavaClass> wrapperClasses = new HashSet<>(); for (OperationInfo op : serviceInfo.getInterface().getOperations()) { if (op.getUnwrappedOperation() != null) { if (op.hasInput()) { RequestWrapper requestWrapper = new RequestWrapper(); requestWrapper.setOperationInfo(op); JavaClass jClass = requestWrapper.buildWrapperBeanClass(); if (requestWrapper.isWrapperBeanClassNotExist()) { wrapperClasses.add(jClass); } } if (op.hasOutput()) { ResponseWrapper responseWrapper = new ResponseWrapper(); responseWrapper.setOperationInfo(op); JavaClass jClass = responseWrapper.buildWrapperBeanClass(); if (responseWrapper.isWrapperBeanClassNotExist()) { wrapperClasses.add(jClass); } } } } return wrapperClasses; } }
private void initializeOperation(Service s, TypeMapping serviceTM, OperationInfo opInfo, Set<AegisType> deps) { try { initializeMessage(s, serviceTM, opInfo.getInput(), IN_PARAM, deps); if (opInfo.hasOutput()) { initializeMessage(s, serviceTM, opInfo.getOutput(), OUT_PARAM, deps); } for (FaultInfo info : opInfo.getFaults()) { initializeMessage(s, serviceTM, info, FAULT_PARAM, deps); } } catch (DatabindingException e) { e.prepend("Error initializing parameters for operation " + opInfo.getName()); throw e; } }
private void initializeOperationTypes(ServiceInfo s, OperationInfo opInfo) { try { initializeMessageTypes(s, opInfo.getInput(), IN_PARAM); if (opInfo.hasOutput()) { initializeMessageTypes(s, opInfo.getOutput(), OUT_PARAM); } for (FaultInfo info : opInfo.getFaults()) { initializeMessageTypes(s, info, FAULT_PARAM); } } catch (DatabindingException e) { e.prepend("Error initializing parameters for operation " + opInfo.getName()); throw e; } }
protected Collection<JavaClass> generateBeanClasses(final ServiceInfo serviceInfo) { Collection<JavaClass> wrapperClasses = new HashSet<>(); for (OperationInfo op : serviceInfo.getInterface().getOperations()) { if (op.getUnwrappedOperation() != null) { if (op.hasInput()) { RequestWrapper requestWrapper = new RequestWrapper(); requestWrapper.setOperationInfo(op); JavaClass jClass = requestWrapper.buildWrapperBeanClass(); if (requestWrapper.isWrapperBeanClassNotExist()) { wrapperClasses.add(jClass); } } if (op.hasOutput()) { ResponseWrapper responseWrapper = new ResponseWrapper(); responseWrapper.setOperationInfo(op); JavaClass jClass = responseWrapper.buildWrapperBeanClass(); if (responseWrapper.isWrapperBeanClassNotExist()) { wrapperClasses.add(jClass); } } } } return wrapperClasses; } }
private void initializeOperationTypes(ServiceInfo s, OperationInfo opInfo) { try { initializeMessageTypes(s, opInfo.getInput(), IN_PARAM); if (opInfo.hasOutput()) { initializeMessageTypes(s, opInfo.getOutput(), OUT_PARAM); } for (FaultInfo info : opInfo.getFaults()) { initializeMessageTypes(s, info, FAULT_PARAM); } } catch (DatabindingException e) { e.prepend("Error initializing parameters for operation " + opInfo.getName()); throw e; } }
private void initializeOperation(Service s, TypeMapping serviceTM, OperationInfo opInfo, Set<AegisType> deps) { try { initializeMessage(s, serviceTM, opInfo.getInput(), IN_PARAM, deps); if (opInfo.hasOutput()) { initializeMessage(s, serviceTM, opInfo.getOutput(), OUT_PARAM, deps); } for (FaultInfo info : opInfo.getFaults()) { initializeMessage(s, serviceTM, info, FAULT_PARAM, deps); } } catch (DatabindingException e) { e.prepend("Error initializing parameters for operation " + opInfo.getName()); throw e; } }
if (o.hasOutput()) { MessageInfo input = o.getOutput(); MessagePartInfo part = input.getMessageParts().get(0); if (o.hasOutput() && !initializeParameter(o, method, -1, method.getReturnType(), method.getGenericReturnType())) { return false; if (origOp.hasOutput()) { sendEvent(Event.OPERATIONINFO_OUT_MESSAGE_SET, origOp, method, origOp.getOutput());
if (o.hasOutput()) { MessageInfo input = o.getOutput(); MessagePartInfo part = input.getMessageParts().get(0); if (o.hasOutput() && !initializeParameter(o, method, -1, method.getReturnType(), method.getGenericReturnType())) { return false; if (origOp.hasOutput()) { sendEvent(Event.OPERATIONINFO_OUT_MESSAGE_SET, origOp, method, origOp.getOutput());
if (o.hasOutput()) { MessageInfo input = o.getOutput(); MessagePartInfo part = input.getFirstMessagePart(); mpi.setIndex(Integer.MAX_VALUE); if (o.hasOutput()) { for (MessagePartInfo mpi : o.getOutput().getOutOfBandParts()) { mpi.setIndex(Integer.MAX_VALUE); sendEvent(Event.OPERATIONINFO_IN_MESSAGE_SET, origOp, method, origOp.getInput()); if (o.hasOutput() && !initializeParameter(o, method, -1, method.getReturnType(), method.getGenericReturnType())) { return false; if (o.hasOutput()) { setIndexes(o.getOutput()); if (origOp.hasOutput()) { sendEvent(Event.OPERATIONINFO_OUT_MESSAGE_SET, origOp, method, origOp.getOutput());
if (op.hasOutput()) { if (op.getOutput().getMessageParts().get(0).getTypeClass() == null) {
if (op.hasOutput()) { if (op.getOutput().getMessageParts().get(0).getTypeClass() == null) {
if (op == null || !op.hasOutput() || op.getOutput().size() == 0) { return;
if (op.hasOutput()) { MessagePartInfo fmpi = op.getOutput().getFirstMessagePart(); if (fmpi.getTypeClass() == null) {