final void createJaxwsBinding() { if (getBinding() instanceof SoapBinding) { jaxwsBinding = new SOAPBindingImpl(getEndpointInfo().getBinding(), this); MTOMFeature mtomFeature = getMTOMFeature(); if (mtomFeature != null && mtomFeature.isEnabled()) { ((SOAPBinding)jaxwsBinding).setMTOMEnabled(true); } } else if (getBinding() instanceof XMLBinding) { jaxwsBinding = new HTTPBindingImpl(getEndpointInfo().getBinding(), this); } else { //REVISIT: Should not get here, though some bindings like JBI //did not implement their own Binding type. jaxwsBinding = new DefaultBindingImpl(this); } }
private void extractWsdlExtensibilities(EndpointInfo endpoint) { List<ExtensibilityElement> portExtensors = getExtensors(endpoint); List<ExtensibilityElement> bindingExtensors = getExtensors(endpoint.getBinding()); Collection<BindingOperationInfo> bindingOperations = endpoint.getBinding().getOperations(); if (null != bindingOperations) { Iterator<BindingOperationInfo> iterator = bindingOperations.iterator();
buildWsdlExtensibilities(ei.getBinding());
public void createPortExtensors(Bus b, EndpointInfo ei, Service service) { if (ei.getBinding() instanceof SoapBindingInfo) { SoapBindingInfo bi = (SoapBindingInfo)ei.getBinding(); createSoapExtensors(b, ei, bi, bi.getSoapVersion() instanceof Soap12); } }
protected Endpoint selectEndpoint(Message message, Set<Endpoint> eps) { SoapVersion sv = ((SoapMessage)message).getVersion(); for (Endpoint e : eps) { EndpointInfo ei = e.getEndpointInfo(); BindingInfo binding = ei.getBinding(); if (binding instanceof SoapBindingInfo && ((SoapBindingInfo)binding).getSoapVersion().equals(sv)) { return e; } } return null; }
protected Endpoint selectEndpoint(Message message, Set<Endpoint> eps) { SoapVersion sv = ((SoapMessage)message).getVersion(); for (Endpoint e : eps) { EndpointInfo ei = e.getEndpointInfo(); BindingInfo binding = ei.getBinding(); if (binding instanceof SoapBindingInfo && ((SoapBindingInfo)binding).getSoapVersion().equals(sv)) { return e; } } return null; }
public static BindingOperationInfo getOperation(Exchange exchange, QName opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); return service.getOperation(opName); } public static BindingOperationInfo getOperationForWrapperElement(Exchange exchange,
public static BindingOperationInfo getOperation(Exchange exchange, QName opName) { Endpoint ep = exchange.getEndpoint(); if (ep == null) { return null; } BindingInfo service = ep.getEndpointInfo().getBinding(); return service.getOperation(opName); } public static BindingOperationInfo getOperationForWrapperElement(Exchange exchange,
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); } } } }
public Object[] invokeWrapped(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)); } return invoke(op, params); }
public Object[] invokeWrapped(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)); } return invoke(op, params); }
public void invokeWrapped(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)); } invoke(callback, op, params); }
public void invokeWrapped(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)); } invoke(callback, op, params); }
public void invokeWrapped(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)); } 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); }