for (BindingOperationInfo bop : bindingInfo.getOperations()) { SoapOperationInfo soi = bop.getExtensor(SoapOperationInfo.class); if (soi != null) {
Collection<BindingOperationInfo> bindingOperations = endpoint.getBinding().getOperations(); if (null != bindingOperations) { Iterator<BindingOperationInfo> iterator = bindingOperations.iterator();
for (BindingOperationInfo op : bindingInfo.getOperations()) { op.setProperty("operation.is.synthetic", Boolean.TRUE); op.getOperationInfo().setProperty("operation.is.synthetic", Boolean.TRUE);
for (BindingOperationInfo bop : bind.getOperations()) { OperationInfo o = bop.getOperationInfo(); if (bop.isUnwrappedCapable()) {
for (BindingOperationInfo bop : bind.getOperations()) {
private void resetPartTypes(Binding bop2) { // The HypbridSourceDatabinding, based on JAXB, will possibly set // JAXB types into the parts. Since we need the Source objects, // we'll reset the types to either Source (for streaming), or null // (for non-streaming, defaults to DOMSource. for (BindingOperationInfo bop : bop2.getBindingInfo().getOperations()) { resetPartTypes(bop); } }
private void resetPartTypes(Binding bop2) { // The HypbridSourceDatabinding, based on JAXB, will possibly set // JAXB types into the parts. Since we need the Source objects, // we'll reset the types to either Source (for streaming), or null // (for non-streaming, defaults to DOMSource. for (BindingOperationInfo bop : bop2.getBindingInfo().getOperations()) { resetPartTypes(bop); } }
Binding binding = client.getEndpoint().getBinding(); BindingInfo bindingInfo = binding.getBindingInfo(); Collection<BindingOperationInfo> operations = bindingInfo .getOperations(); for (BindingOperationInfo boi : operations) { BindingMessageInfo inputMessageInfo = boi.getInput(); List<MessagePartInfo> parts = inputMessageInfo .getMessageParts(); System.out.println("method name: " + parts.get(0).getConcreteName().getLocalPart()); for (Field param : parts.get(0).getTypeClass() .getDeclaredFields()) { System.out.println("param_name: " + param.getName() + " type:" + param.getType()); } }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.get(Endpoint.class); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, String opName) { Endpoint ep = exchange.get(Endpoint.class); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getName().getLocalPart().equals(opName)) { return b; } } return null; }
public BindingOperationInfo getBindingOperation(Method method, Endpoint endpoint) { Map<BindingInfo, BindingOperationInfo> bops = infoMap.get(method); if (bops == null) { return null; } BindingOperationInfo bop = bops.get(endpoint.getEndpointInfo().getBinding()); if (bop == null) { OperationInfo o = methodToOp.get(method); if (o == null) { return null; } BindingInfo b = endpoint.getEndpointInfo().getBinding(); for (BindingOperationInfo bop2 : b.getOperations()) { if (bop2.getOperationInfo().equals(o)) { bop2 = getRealOperation(o, bop2); bops.put(b, bop2); return bop2; } } } return bop; }
private void initialise(Endpoint endpoint) { for (BindingOperationInfo bop : endpoint.getEndpointInfo().getBinding().getOperations()) { SchemaValidationType type = provider.getSchemaValidationType(bop.getOperationInfo()); if (type != null) { bop.getOperationInfo().setProperty(Message.SCHEMA_VALIDATION_TYPE, type); } } } }
private void initialise(Endpoint endpoint) { for (BindingOperationInfo bop : endpoint.getEndpointInfo().getBinding().getOperations()) { SchemaValidationType type = provider.getSchemaValidationType(bop.getOperationInfo()); if (type != null) { bop.getOperationInfo().setProperty(Message.SCHEMA_VALIDATION_TYPE, type); } } } }
private void initialise(Endpoint endpoint) { for (BindingOperationInfo bop : endpoint.getEndpointInfo().getBinding().getOperations()) { SchemaValidationType type = provider.getSchemaValidationType(bop.getOperationInfo()); if (type != null) { bop.getOperationInfo().setProperty(Message.SCHEMA_VALIDATION_TYPE, type); } } } }
private void initialise(Endpoint endpoint) { for (BindingOperationInfo bop : endpoint.getEndpointInfo().getBinding().getOperations()) { SchemaValidationType type = provider.getSchemaValidationType(bop.getOperationInfo()); if (type != null) { bop.getOperationInfo().setProperty(Message.SCHEMA_VALIDATION_TYPE, type); } } } }
private BindingOperationInfo findAnyOp(Exchange exchange) { Endpoint ep = exchange.get(Endpoint.class); BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getInput() != null && !b.getInput().getMessageInfo().getMessageParts().isEmpty()) { MessagePartInfo inf = b.getInput().getMessageInfo().getMessagePart(0); if (XMLSchemaQNames.XSD_ANY.equals(inf.getTypeQName())) { return b; } } } return null; }
private BindingOperationInfo findAnyOp(Exchange exchange) { Endpoint ep = exchange.get(Endpoint.class); BindingInfo service = ep.getEndpointInfo().getBinding(); for (BindingOperationInfo b : service.getOperations()) { if (b.getInput() != null && !b.getInput().getMessageInfo().getMessageParts().isEmpty()) { MessagePartInfo inf = b.getInput().getMessageInfo().getMessagePart(0); if (XMLSchemaQNames.XSD_ANY.equals(inf.getTypeQName())) { return b; } } } return null; }
private void processBindings(JavaModel model) { for (BindingInfo binding : service.getBindings()) { bindingType = getBindingType(binding); if (bindingType == null) { org.apache.cxf.common.i18n.Message msg = new org.apache.cxf.common.i18n.Message("BINDING_SPECIFY_ONE_PROTOCOL", LOG, binding.getName()); throw new ToolException(msg); } Collection<BindingOperationInfo> operations = binding.getOperations(); for (BindingOperationInfo bop : operations) { processOperation(model, bop, binding); } } }