protected void setupBindingOperationInfo(Exchange exch, Object data) { if (exch.getBindingOperationInfo() == null) { //need to know the operation to determine if oneway QName opName = getOpQName(exch, data); if (opName == null) { return; } BindingOperationInfo bop = ServiceModelUtil .getOperationForWrapperElement(exch, opName, false); if (bop == null) { bop = ServiceModelUtil.getOperation(exch, opName); } if (bop != null) { exch.put(BindingOperationInfo.class, bop); if (bop.getOutput() == null) { exch.setOneWay(true); } } } }
/** * Returns a BindingOperationInfo if the operation is indentified as * a wrapped method, return null if it is not a wrapped method * (i.e., it is a bare method) * * @param exchange * @param name * @param client */ protected BindingOperationInfo getBindingOperationInfo(Exchange exchange, QName name, boolean client) { String local = name.getLocalPart(); if (client && local.endsWith("Response")) { local = local.substring(0, local.length() - 8); } BindingOperationInfo bop = ServiceModelUtil.getOperation(exchange, local); if (bop != null) { exchange.put(BindingOperationInfo.class, bop); } return bop; }
protected BindingOperationInfo getOperation(Message message, QName opName) { BindingOperationInfo op = ServiceModelUtil.getOperation(message .getExchange(), opName); if (op == null) { throw new Fault(new Exception("Unrecognized operation")); } return op; }
protected void setupBindingOperationInfo(Exchange exch, Object data) { if (exch.getBindingOperationInfo() == null) { //need to know the operation to determine if oneway QName opName = getOpQName(exch, data); if (opName == null) { return; } BindingOperationInfo bop = ServiceModelUtil .getOperationForWrapperElement(exch, opName, false); if (bop == null) { bop = ServiceModelUtil.getOperation(exch, opName); } if (bop != null) { exch.put(BindingOperationInfo.class, bop); if (bop.getOutput() == null) { exch.setOneWay(true); } } } }
/** * Returns a BindingOperationInfo if the operation is indentified as * a wrapped method, return null if it is not a wrapped method * (i.e., it is a bare method) * * @param exchange * @param name * @param client */ protected BindingOperationInfo getBindingOperationInfo(Exchange exchange, QName name, boolean client) { String local = name.getLocalPart(); if (client && local.endsWith("Response")) { local = local.substring(0, local.length() - 8); } BindingOperationInfo bop = ServiceModelUtil.getOperation(exchange, local); if (bop != null) { exchange.put(BindingOperationInfo.class, bop); } return bop; }
private BindingOperationInfo getOperationFromContent(Message message) { BindingOperationInfo boi = null; XMLStreamReader xmlReader = message.getContent(XMLStreamReader.class); if (null != xmlReader) { QName qName = xmlReader.getName(); boi = ServiceModelUtil.getOperation(message.getExchange(), qName); } return boi; }
private BindingOperationInfo getOperationFromContent(Message message) { BindingOperationInfo boi = null; XMLStreamReader xmlReader = message.getContent(XMLStreamReader.class); if (null != xmlReader) { QName qName = xmlReader.getName(); boi = ServiceModelUtil.getOperation(message.getExchange(), qName); } return boi; }
/** * Returns a BindingOperationInfo if the operation is indentified as * a wrapped method, return null if it is not a wrapped method * (i.e., it is a bare method) * * @param exchange * @param name * @param client */ protected BindingOperationInfo getBindingOperationInfo(Exchange exchange, QName name, boolean client) { String local = name.getLocalPart(); if (client && local.endsWith("Response")) { local = local.substring(0, local.length() - 8); } // TODO: Allow overridden methods. BindingOperationInfo bop = ServiceModelUtil.getOperation(exchange, local); if (bop != null) { exchange.put(BindingOperationInfo.class, bop); exchange.put(OperationInfo.class, bop.getOperationInfo()); } return bop; }
/** * Returns a BindingOperationInfo if the operation is indentified as * a wrapped method, return null if it is not a wrapped method * (i.e., it is a bare method) * * @param exchange * @param name * @param client */ protected BindingOperationInfo getBindingOperationInfo(Exchange exchange, QName name, boolean client) { String local = name.getLocalPart(); if (client && local.endsWith("Response")) { local = local.substring(0, local.length() - 8); } // TODO: Allow overridden methods. BindingOperationInfo bop = ServiceModelUtil.getOperation(exchange, local); if (bop != null) { exchange.put(BindingOperationInfo.class, bop); exchange.put(OperationInfo.class, bop.getOperationInfo()); } return bop; }
private BindingOperationInfo getOperation(Message message, QName opName) { BindingOperationInfo bop = ServiceModelUtil.getOperation(message.getExchange(), opName); if (bop == null) { Endpoint ep = message.getExchange().getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); boolean output = !isRequestor(message); for (BindingOperationInfo info : service.getOperations()) { if (info.getName().getLocalPart().equals(opName.getLocalPart())) { SoapBody body = null; if (output) { body = info.getOutput().getExtensor(SoapBody.class); } else { body = info.getInput().getExtensor(SoapBody.class); } if (body != null && opName.getNamespaceURI().equals(body.getNamespaceURI())) { return info; } } } } return bop; } public void handleMessage(Message message) {
private BindingOperationInfo getOperation(Message message, QName opName) { BindingOperationInfo bop = ServiceModelUtil.getOperation(message.getExchange(), opName); if (bop == null) { Endpoint ep = message.getExchange().getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); boolean output = !isRequestor(message); for (BindingOperationInfo info : service.getOperations()) { if (info.getName().getLocalPart().equals(opName.getLocalPart())) { SoapBody body = null; if (output) { body = info.getOutput().getExtensor(SoapBody.class); } else { body = info.getInput().getExtensor(SoapBody.class); } if (body != null && opName.getNamespaceURI().equals(body.getNamespaceURI())) { return info; } } } } return bop; } public void handleMessage(Message message) {
private BindingOperationInfo getOperation(Message message, QName opName) { BindingOperationInfo bop = ServiceModelUtil.getOperation(message.getExchange(), opName); if (bop == null)
LOG.fine("URIMappingInterceptor get operation: " + opName); BindingOperationInfo op = ServiceModelUtil.getOperation(message.getExchange(), opName);
LOG.fine("URIMappingInterceptor get operation: " + opName); BindingOperationInfo op = ServiceModelUtil.getOperation(message.getExchange(), opName);