Examples of JaxWsClientFactoryBean


Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

  @Override
  public BasicConnectionFactory createConnectionFactory() throws ResourceException {
    QName portQName = SforceService.SERVICE;
    if (this.configFile != null) {
      this.bus = new SpringBusFactory().createBus(this.configFile);
      JaxWsClientFactoryBean instance = new JaxWsClientFactoryBean();
      Configurer configurer = this.bus.getExtension(Configurer.class);
          if (null != configurer) {
              configurer.configureBean(portQName.toString() + ".jaxws-client.proxyFactory", instance); //$NON-NLS-1$
          }
    }
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

      configName = WSConnectionImpl.DEFAULT_LOCAL_NAME;
    }
    this.portQName = new QName(WSConnectionImpl.DEFAULT_NAMESPACE_URI, configName);
    if (configFile != null) {
      bus = new SpringBusFactory().createBus(configFile);
      JaxWsClientFactoryBean instance = new JaxWsClientFactoryBean();
      Configurer configurer = bus.getExtension(Configurer.class);
          if (null != configurer) {
              configurer.configureBean(portQName.toString() + ".jaxws-client.proxyFactory", instance); //$NON-NLS-1$
          }
          outInterceptors = instance.getOutInterceptors();
    }
    return new BasicConnectionFactory() {
      @Override
      public BasicConnection getConnection() throws ResourceException {
        return new WSConnectionImpl(WSManagedConnectionFactory.this);
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    Client client = new CamelCxfClientImpl(getBus(), ep);
                    this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, client, ep);
                    return client;
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    Client client = new CamelCxfClientImpl(getBus(), ep);
                    this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, client, ep);
                    return client;
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    return new CamelCxfClientImpl(getBus(), ep);
                }
            };
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

            if (cls == null) {
                clientFactory = new ClientFactoryBean();
                clientFactory.setServiceFactory(new WSDLSoapServiceFactoryBean());
            } else {
                boolean isJSR181SEnabled = CxfEndpointUtils.hasWebServiceAnnotation(cls);
                clientFactory = isJSR181SEnabled ? new JaxWsClientFactoryBean()
                        : new ClientFactoryBean();
            }
            return clientFactory;
        } catch (Exception e) {
            throw new CamelException(e);
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    Client client = new CamelCxfClientImpl(getBus(), ep);
                    this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, client, ep);
                    return client;
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    return new CamelCxfClientImpl(getBus(), ep);
                }
            };
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    Client client = new CamelCxfClientImpl(getBus(), ep);
                    this.getServiceFactory().sendEvent(FactoryBeanListener.Event.CLIENT_CREATED, client, ep);
                    return client;
View Full Code Here

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean

     * Create a client factory bean object.  Notice that the serviceClass <b>must</b> be
     * an interface.
     */
    protected ClientProxyFactoryBean createClientFactoryBean(Class<?> cls) throws CamelException {
        if (CxfEndpointUtils.hasWebServiceAnnotation(cls)) {
            return new JaxWsProxyFactoryBean(new JaxWsClientFactoryBean() {
                @Override
                protected Client createClient(Endpoint ep) {
                    return new CamelCxfClientImpl(getBus(), ep);
                }
            });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.