/** * Returns the QName of the WSDL service the proxy implements * * @return the WSDL service's QName */ public QName getServiceName() { return getServiceFactory().getServiceQName(); }
/** * Specifies the QName of the WSDL service the proxy implements. The * service must exist or an error will result. * * @param serviceName the QName of the service for the proxy */ public void setServiceName(QName serviceName) { getServiceFactory().setServiceName(serviceName); }
/** * Specifies the QName of the WSDL service the proxy implements. The * service must exist or an error will result. * * @param serviceName the QName of the service for the proxy */ public void setServiceName(QName serviceName) { getServiceFactory().setServiceName(serviceName); }
/** * Returns the QName of the WSDL service the proxy implements * * @return the WSDL service's QName */ public QName getServiceName() { return getServiceFactory().getServiceQName(); }
public void initFeatures() { this.clientFactoryBean.setFeatures(features); this.getServiceFactory().setFeatures(features); }
public void initFeatures() { this.clientFactoryBean.setFeatures(features); this.getServiceFactory().setFeatures(features); }
factory.getServiceFactory().setDataBinding(new AegisDatabinding()); factory.setServiceClass(pClass); factory.setUsername(pUsername);
factoryBean.getServiceFactory().setServiceName(requestInfo.getServiceName()); factoryBean.getServiceFactory().setEndpointName(requestInfo.getPortName()); factoryBean.getServiceFactory().setWsdlURL(requestInfo.getWsdlLocation());
private synchronized Object createClientProxy(final CXFConnectionSpec spec) { if (clientProxy == null) { validateConnectionSpec(spec); ClientProxyFactoryBean factory = null; if (EndpointUtils.hasWebServiceAnnotation(spec.getServiceClass())) { factory = new JaxWsProxyFactoryBean(); } else { factory = new ClientProxyFactoryBean(); } factory.setBus(getBus(spec.getBusConfigURL())); factory.setServiceClass(spec.getServiceClass()); factory.getServiceFactory().setEndpointName(spec.getEndpointName()); factory.getServiceFactory().setServiceName(spec.getServiceName()); factory.getServiceFactory().setWsdlURL(spec.getWsdlURL()); if (spec.getAddress() != null) { factory.setAddress(spec.getAddress()); } configureObject(spec.getEndpointName().toString() + ".jaxws-client.proxyFactory", factory); clientProxy = factory.create(); } return clientProxy; }
/** * Configure the client proxy factory; currently set the binding customization in the databinding (Client Side). * * @param factory */ protected void configureClientProxyFactoryBean(ClientProxyFactoryBean factory) { //Configure binding customization if (customization != null) { //customize default databinding (early pulls in ServiceFactory default databinding and configure it, as it's lazily loaded) ReflectionServiceFactoryBean serviceFactory = factory.getServiceFactory(); 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 }
} else { clientFactory = new ClientProxyFactoryBean(); clientFactory.getServiceFactory().setDataBinding(new AegisDatabinding());
handler); this.getServiceFactory().sendEvent(FactoryBeanListener.Event.PROXY_CREATED, classes, handler, obj); return obj;
handler); this.getServiceFactory().sendEvent(FactoryBeanListener.Event.PROXY_CREATED, classes, handler, obj); return obj;