Package org.apache.cxf

Examples of org.apache.cxf.Bus


      try {
        SpringBusFactory bf = new SpringBusFactory();
        URL busFile = SecureServiceTestHarnessImpl.class.getResource("/wssec.xml");

        Bus bus = bf.createBus(busFile.toString());
        bf.setThreadDefaultBus(bus);

        QName portName=new QName("http://www.jboss.org/bpel/examples/wsdl", "SecureHelloPort");
       
        URL wsdlURL = new URL("http://127.0.0.1:8080/Quickstart_bpel_secure_serviceWS?wsdl");
View Full Code Here


            System.exit(2);
        }
     
        SpringBusFactory bf = new SpringBusFactory();
        URL busFile = ClassLoader.getSystemResource("wssec.xml");
        Bus bus = bf.createBus(busFile.toString());
        bf.setDefaultBus(bus);
       
        QName portName=new QName("http://www.jboss.org/bpel/examples/wsdl", "SecureHelloPort");
       
       
View Full Code Here

      URL busFile = urlcl.getResource(filename);
     
      log.debug("Web Stack initialization file: name="+filename+" file="+busFile);
     
      if (busFile != null) {
        Bus bus = bf.createBus(busFile.toString());
        bf.setThreadDefaultBus(bus);
       
        log.debug("Set thread default bus="+bus);
      }
           
View Full Code Here

     
      if(url == null) {
        throw new ResourceException("SalesForce URL is not specified, please provide a valid URL"); //$NON-NLS-1$
      }

      Bus bus = BusFactory.getThreadDefaultBus();
      BusFactory.setThreadDefaultBus(mcf.getBus());
      try {
        sfService = new SforceService();
        sfSoap = sfService.getSoap();
        ((BindingProvider)sfSoap).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url.toExternalForm());
View Full Code Here

    Dispatch<T> dispatch = null;
    if (HTTPBinding.HTTP_BINDING.equals(binding) && type == DataSource.class) {
      dispatch = (Dispatch<T>) new BinaryDispatch(endpoint);
    } else {
      //TODO: cache service/port/dispatch instances?
      Bus bus = BusFactory.getThreadDefaultBus();
      BusFactory.setThreadDefaultBus(mcf.getBus());
      Service svc;
      try {
        svc = Service.create(svcQname);
      } finally {
View Full Code Here

        String resolvedLocation = resolveByCatalog(url);
        return getTargetNode(resolvedLocation);
    }

    private String resolveByCatalog(String url) {
        Bus bus = (Bus)env.get(Bus.class);
        Catalog catalogResolver = OASISCatalogManager.getCatalogManager(bus).getCatalog();
        String resolvedLocation;
        try {
            resolvedLocation = catalogResolver.resolveSystem(url);
            if (resolvedLocation == null) {
View Full Code Here

                    }
                }               
            }
        } finally {
            //cleanup as much as we can.
            Bus bus = BusFactory.getDefaultBus(false);
            if (bus != null) {
                bus.shutdown(true);
            }
            Thread.currentThread().setContextClassLoader(origContext);
            System.setProperty("java.class.path", cp);
           
            Map<Object, Object> newProps = new HashMap<Object, Object>(System.getProperties());
View Full Code Here

     *
     * @return the new instance
     * @see CXFBusFactory#getDefaultBus()
     */
    public static DynamicClientFactory newInstance() {
        Bus bus = CXFBusFactory.getThreadDefaultBus();
        return new DynamicClientFactory(bus);
    }
View Full Code Here

                Service sv = ex.get(Service.class);
                if (sv != null) {
                    val = sv.get(key);
                }
                if (val == null) {
                    Bus bus = ex.get(Bus.class);
                    if (bus != null) {
                        val = bus.getProperty(key);
                    }
                }
            }
        }
       
View Full Code Here

                }
            }
        }).start();
       
       
        Bus bus  = BusFactory.newInstance().createBus();
        new LoggingFeature().initialize(bus);
        WSDiscoveryClient c = new WSDiscoveryClient(bus);
        c.setVersion10();
        c.setAddress("soap.udp://239.255.255.250:" + PORT);

        ProbeType pt = new ProbeType();
        ScopesType scopes = new ScopesType();
        pt.setScopes(scopes);
        ProbeMatchesType pmts = c.probe(pt, 1000);

        Assert.assertEquals(2, pmts.getProbeMatch().size());
        c.close();
        bus.shutdown(true);       
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.Bus

Copyright © 2018 www.massapicom. 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.