if (boi.isUnwrappedCapable()) { BindingOperationInfo boi2 = boi.getUnwrappedOperation(); OperationInfo op = boi2.getOperationInfo();
for (BindingOperationInfo bop : bind.getOperations()) { OperationInfo o = bop.getOperationInfo(); if (bop.isUnwrappedCapable()) {
for (BindingOperationInfo bop : bind.getOperations()) { if (bop.isUnwrappedCapable()) { bop.getOperationInfo().setUnwrappedOperation(null); bop.setUnwrappedOperation(null);
public BindingOperationInfo getOperation(OperationInfo oi) { for (BindingOperationInfo b : operations.values()) { if (b.getOperationInfo() == oi) { return b; } else if (b.isUnwrappedCapable() && b.getUnwrappedOperation().getOperationInfo() == oi) { return b.getUnwrappedOperation(); } } return null; }
private void handleOutBoundMessage(CorbaMessage message, BindingOperationInfo boi) { boolean wrap = false; if (boi.isUnwrappedCapable()) { wrap = true; } OperationType opType = boi.getExtensor(OperationType.class); List<ParamType> paramTypes = opType.getParam(); List<ArgType> params = new ArrayList<>(); for (Iterator<ParamType> iter = paramTypes.iterator(); iter.hasNext();) { ParamType param = iter.next(); if (!param.getMode().equals(ModeType.OUT)) { params.add(param); } } CorbaStreamWriter writer = new CorbaStreamWriter(orb, params, typeMap, service, wrap); message.setContent(XMLStreamWriter.class, writer); }
public BindingOperationInfo getOperation(OperationInfo oi) { for (BindingOperationInfo b : operations.values()) { if (b.getOperationInfo() == oi) { return b; } else if (b.isUnwrappedCapable() && b.getUnwrappedOperation().getOperationInfo() == oi) { return b.getUnwrappedOperation(); } } return null; }
public BindingOperationInfo getOperation(OperationInfo oi) { for (BindingOperationInfo b : operations.values()) { if (b.getOperationInfo() == oi) { return b; } else if (b.isUnwrappedCapable() && b.getUnwrappedOperation().getOperationInfo() == oi) { return b.getUnwrappedOperation(); } } return null; }
public BindingOperationInfo getOperation(OperationInfo oi) { for (BindingOperationInfo b : operations.values()) { if (b.getOperationInfo() == oi) { return b; } else if (b.isUnwrappedCapable() && b.getUnwrappedOperation().getOperationInfo() == oi) { return b.getUnwrappedOperation(); } } return null; }
private void handleInBoundMessage(CorbaMessage message, BindingOperationInfo boi) { boolean wrap = false; if (boi.isUnwrappedCapable()) { wrap = true; } OperationType opType = boi.getExtensor(OperationType.class); ArgType returnParam = opType.getReturn(); List<ParamType> paramTypes = opType.getParam(); List<ArgType> params = new ArrayList<>(); if (returnParam != null) { params.add(returnParam); } for (Iterator<ParamType> iter = paramTypes.iterator(); iter.hasNext();) { ParamType param = iter.next(); if (!param.getMode().equals(ModeType.IN)) { params.add(param); } } CorbaStreamWriter writer = new CorbaStreamWriter(orb, params, typeMap, service, wrap); message.setContent(XMLStreamWriter.class, writer); }
private BindingOperationInfo getInvocationOperation() throws Exception { // Normally its not this hard to invoke the CXF Client, but we're // sending along some exchange properties, so we need to use a more advanced // method Endpoint ep = client.getEndpoint(); // The operation is always named invoke because hits our ProxyService implementation. QName q = new QName(ep.getService().getName().getNamespaceURI(), "invoke"); BindingOperationInfo bop = ep.getBinding().getBindingInfo().getOperation(q); if (bop.isUnwrappedCapable()) { bop = bop.getUnwrappedOperation(); } return bop; }
public Object[] invoke(QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } return invoke(op, params); }
public void invoke(ClientCallback callback, QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } invoke(callback, op, params); }
public Object[] invoke(QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } return invoke(op, params); }
public Object[] invoke(QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } return invoke(op, params); }
public Object[] invoke(QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } return invoke(op, params); }
public void invoke(ClientCallback callback, QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } invoke(callback, op, params); }
public void invoke(ClientCallback callback, QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } invoke(callback, op, params); }
public void invoke(ClientCallback callback, QName operationName, Object... params) throws Exception { BindingOperationInfo op = getEndpoint().getEndpointInfo().getBinding().getOperation(operationName); if (op == null) { throw new UncheckedException( new org.apache.cxf.common.i18n.Message("NO_OPERATION", LOG, operationName)); } if (op.isUnwrappedCapable()) { op = op.getUnwrappedOperation(); } invoke(callback, op, params); }
private void resetPartTypes(BindingOperationInfo bop) { if (bop.isUnwrapped()) { bop = bop.getWrappedOperation(); } if (bop.isUnwrappedCapable()) { resetPartTypeClass(bop.getWrappedOperation().getOperationInfo().getInput()); resetPartTypeClass(bop.getWrappedOperation().getOperationInfo().getOutput()); resetPartTypeClass(bop.getWrappedOperation().getInput()); resetPartTypeClass(bop.getWrappedOperation().getOutput()); } resetPartTypeClass(bop.getOperationInfo().getInput()); resetPartTypeClass(bop.getOperationInfo().getOutput()); resetPartTypeClass(bop.getInput()); resetPartTypeClass(bop.getOutput()); }
private void resetPartTypes(BindingOperationInfo bop) { if (bop.isUnwrapped()) { bop = bop.getWrappedOperation(); } if (bop.isUnwrappedCapable()) { resetPartTypeClass(bop.getWrappedOperation().getOperationInfo().getInput()); resetPartTypeClass(bop.getWrappedOperation().getOperationInfo().getOutput()); resetPartTypeClass(bop.getWrappedOperation().getInput()); resetPartTypeClass(bop.getWrappedOperation().getOutput()); } else { resetPartTypeClass(bop.getOperationInfo().getInput()); resetPartTypeClass(bop.getOperationInfo().getOutput()); resetPartTypeClass(bop.getInput()); resetPartTypeClass(bop.getOutput()); } }