BindingOperationInfo boi2 = boi.getUnwrappedOperation(); OperationInfo op = boi2.getOperationInfo(); BindingMessageInfo bmi;
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; }
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 BindingOperationInfo getRealOperation(OperationInfo o, BindingOperationInfo bop) { BindingOperationInfo unwrappedOp = bop.getUnwrappedOperation(); if (unwrappedOp != null && unwrappedOp.getOperationInfo().equals(o.getUnwrappedOperation())) { bop = unwrappedOp; } return bop; }
private BindingOperationInfo getRealOperation(OperationInfo o, BindingOperationInfo bop) { BindingOperationInfo unwrappedOp = bop.getUnwrappedOperation(); if (unwrappedOp != null && unwrappedOp.getOperationInfo().equals(o.getUnwrappedOperation())) { bop = unwrappedOp; } return bop; }
private BindingOperationInfo getRealOperation(OperationInfo o, BindingOperationInfo bop) { BindingOperationInfo unwrappedOp = bop.getUnwrappedOperation(); if (unwrappedOp != null && unwrappedOp.getOperationInfo().equals(o.getUnwrappedOperation())) { bop = unwrappedOp; } return bop; }
public void bind(BindingOperationInfo bop, String uri, String verb) { ResourceInfo info = new ResourceInfo(); info.setUri(uri); info.setVerb(verb); info.setOperation(bop); locations.put(bop.getOperationInfo(), uri); verbs.put(bop.getOperationInfo(), verb); if (bop.getOperationInfo().getUnwrappedOperation() != null) { locations.put(bop.getUnwrappedOperation().getOperationInfo(), uri); verbs.put(bop.getUnwrappedOperation().getOperationInfo(), verb); } resources.add(info); }
private BindingOperationInfo getRealOperation(OperationInfo o, BindingOperationInfo bop) { BindingOperationInfo unwrappedOp = bop.getUnwrappedOperation(); if (unwrappedOp != null && unwrappedOp.getOperationInfo().equals(o.getUnwrappedOperation())) { bop = unwrappedOp; } return bop; }
protected BindingOperationInfo getOperation(final String opName) 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(); BindingOperationInfo bop = getBindingOperationFromEndpoint(ep, opName); if (bop == null) { bop = tryToGetTheOperationInDotNetNamingConvention(ep, opName); if (bop == null) { throw new Exception("No such operation: " + opName); } } if (bop.isUnwrappedCapable()) { bop = bop.getUnwrappedOperation(); } return bop; }
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 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 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); }