public void setWsdlURL(String wsdlURL) { getServiceFactory().setWsdlURL(wsdlURL); } }
public String getStyle() { if (getBindingConfig() instanceof SoapBindingConfiguration && ((SoapBindingConfiguration)getBindingConfig()).isSetStyle()) { return ((SoapBindingConfiguration)getBindingConfig()).getStyle(); } return null; } public Boolean isWrapped() {
protected void initializeServiceFactory() { Class<?> cls = getServiceClass(); serviceFactory.setServiceClass(cls); serviceFactory.setBus(getBus()); if (dataBinding != null) { serviceFactory.setDataBinding(dataBinding); } }
protected Endpoint createEndpoint() throws BusException, EndpointException { serviceFactory.setFeatures(getFeatures()); if (serviceName != null) { serviceFactory.setServiceName(serviceName); initializeServiceFactory(); service = serviceFactory.create(); ei = null; } else { BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); bindingFactory = bfm.getBindingFactory(ei.getBinding().getBindingId()); if (getAddress() == null) { ei = ServiceModelUtil.findBestEndpointInfo(serviceFactory.getInterfaceName(), service .getServiceInfos()); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); bindingFactory = bfm.getBindingFactory(ei.getBinding().getBindingId()); ei = createEndpointInfo(null); } else if (transportId != null && !ei.getTransportId().equals(transportId)) { + endpointName + " in wsdl doesn't match " + transportId + "."); BindingInfo bi = ei.getBinding(); ei = createEndpointInfo(bi); } else if (bindingId != null && !ei.getBinding().getBindingId().equals(bindingId) LOG.warning("Binding for endpoint/port "
protected EndpointInfo createEndpointInfo(BindingInfo bindingInfo) throws BusException { if (transportId == null && getAddress() != null && getAddress().startsWith("jms:") && !"jms://".equals(getAddress())) { if (bindingInfo == null) { bindingInfo = createBindingInfo(); if (bindingInfo instanceof SoapBindingInfo && (((SoapBindingInfo) bindingInfo).getTransportURI() == null && getAddress() != null && getAddress().contains("://")) { transportId = detectTransportIdFromAddress(getAddress()); setTransportId(transportId); WSDLEndpointFactory wsdlEndpointFactory = getWSDLEndpointFactory(); EndpointInfo ei; if (wsdlEndpointFactory != null) { ei.setAddress(getAddress()); ei.setBinding(bindingInfo);
/** * Configure the endpoint factory * * @param factory */ protected void configureEndpointFactory(AbstractWSDLBasedEndpointFactory factory) { //Configure binding customization if (customization != null) { ReflectionServiceFactoryBean serviceFactory = factory.getServiceFactory(); //customize default databinding (early pulls in ServiceFactory default databinding and configure it, as it's lazily loaded) serviceFactory.reset(); DataBinding serviceFactoryDataBinding = serviceFactory.getDataBinding(true); configureBindingCustomization(serviceFactoryDataBinding, customization); serviceFactory.setDataBinding(serviceFactoryDataBinding); //customize user provided databinding (CXF later overrides the ServiceFactory databinding using the user provided one) if (factory.getDataBinding() == null) { //set the endpoint factory's databinding to prevent CXF resetting everything because user did not provide anything factory.setDataBinding(serviceFactoryDataBinding); } else { configureBindingCustomization(factory.getDataBinding(), customization); } } //add other configurations here below }
private void modifyTransportIdPerAddress(EndpointInfo ei) { //get chance to set transportId according to the the publish address prefix //this is useful for local & camel transport if (transportId == null && getAddress() != null) { DestinationFactory df = getDestinationFactory(); if (df == null) { DestinationFactoryManager dfm = getBus().getExtension( DestinationFactoryManager.class); df = dfm.getDestinationFactoryForUri(getAddress()); } if (df != null) { transportId = df.getTransportIds().get(0); } else { // check conduits (the address could be supported on // client only) ConduitInitiatorManager cim = getBus().getExtension( ConduitInitiatorManager.class); ConduitInitiator ci = cim .getConduitInitiatorForUri(getAddress()); if (ci != null) { transportId = ci.getTransportIds().get(0); } } } if (transportId != null) { ei.setTransportId(transportId); } }
if (binding.contains("/soap")) { if (bindingConfig == null) { bindingConfig = createSoapBindingConfig();
protected Endpoint createEndpoint() throws BusException, EndpointException { serviceFactory.setFeatures(getFeatures()); if (serviceName != null) { serviceFactory.setServiceName(serviceName); initializeServiceFactory(); service = serviceFactory.create(); ei = null; } else { BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); bindingFactory = bfm.getBindingFactory(ei.getBinding().getBindingId()); if (getAddress() == null) { ei = ServiceModelUtil.findBestEndpointInfo(serviceFactory.getInterfaceName(), service .getServiceInfos()); BindingFactoryManager bfm = getBus().getExtension(BindingFactoryManager.class); bindingFactory = bfm.getBindingFactory(ei.getBinding().getBindingId()); ei = createEndpointInfo(null); } else if (transportId != null && !ei.getTransportId().equals(transportId)) { + endpointName + " in wsdl doesn't match " + transportId + "."); BindingInfo bi = ei.getBinding(); ei = createEndpointInfo(bi); } else if (bindingId != null && !ei.getBinding().getBindingId().equals(bindingId) LOG.warning("Binding for endpoint/port "
protected EndpointInfo createEndpointInfo(BindingInfo bindingInfo) throws BusException { if (transportId == null && getAddress() != null && getAddress().startsWith("jms:") && !"jms://".equals(getAddress())) { if (bindingInfo == null) { bindingInfo = createBindingInfo(); if (bindingInfo instanceof SoapBindingInfo && (((SoapBindingInfo) bindingInfo).getTransportURI() == null && getAddress() != null && getAddress().contains("://")) { transportId = detectTransportIdFromAddress(getAddress()); setTransportId(transportId); WSDLEndpointFactory wsdlEndpointFactory = getWSDLEndpointFactory(); EndpointInfo ei; if (wsdlEndpointFactory != null) { ei.setAddress(getAddress()); ei.setBinding(bindingInfo);
private void modifyTransportIdPerAddress(EndpointInfo ei) { //get chance to set transportId according to the the publish address prefix //this is useful for local & camel transport if (transportId == null && getAddress() != null) { DestinationFactory df = getDestinationFactory(); if (df == null) { DestinationFactoryManager dfm = getBus().getExtension( DestinationFactoryManager.class); df = dfm.getDestinationFactoryForUri(getAddress()); } if (df != null) { transportId = df.getTransportIds().get(0); } else { // check conduits (the address could be supported on // client only) ConduitInitiatorManager cim = getBus().getExtension( ConduitInitiatorManager.class); ConduitInitiator ci = cim .getConduitInitiatorForUri(getAddress()); if (ci != null) { transportId = ci.getTransportIds().get(0); } } } if (transportId != null) { ei.setTransportId(transportId); } }
if (binding.contains("/soap")) { if (bindingConfig == null) { bindingConfig = createSoapBindingConfig();
public String getWsdlURL() { return getServiceFactory().getWsdlURL(); }
protected void initializeServiceFactory() { Class<?> cls = getServiceClass(); serviceFactory.setServiceClass(cls); serviceFactory.setBus(getBus()); if (dataBinding != null) { serviceFactory.setDataBinding(dataBinding); } }
public String getStyle() { if (getBindingConfig() instanceof SoapBindingConfiguration && ((SoapBindingConfiguration)getBindingConfig()).isSetStyle()) { return ((SoapBindingConfiguration)getBindingConfig()).getStyle(); } return null; } public Boolean isWrapped() {
public void setWsdlURL(String wsdlURL) { getServiceFactory().setWsdlURL(wsdlURL); } }
public Boolean isWrapped() { if (getBindingConfig() instanceof SoapBindingConfiguration && ((SoapBindingConfiguration)getBindingConfig()).isSetStyle() && "rpc".equals(((SoapBindingConfiguration)getBindingConfig()).getStyle())) { return Boolean.FALSE; } return null; } }
public String getWsdlURL() { return getServiceFactory().getWsdlURL(); }
public Boolean isWrapped() { if (getBindingConfig() instanceof SoapBindingConfiguration && ((SoapBindingConfiguration)getBindingConfig()).isSetStyle() && "rpc".equals(((SoapBindingConfiguration)getBindingConfig()).getStyle())) { return Boolean.FALSE; } return null; } }