Indlæg

Viser indlæg fra september, 2010

Developing a client for VMware vSphere Web Services SDK using Apache CXF

1. Generating the client code from the wsdl

The documentation for the WSDLToJava tool is available at the Apache CXF homepage.

org.apache.cxf.tools.wsdlto.WSDLToJava -p com.vmware.vim25 /home/<username>/SDK/wsdl/vim25/vimService.wsdl
2. Instantiate a client where you can call the operations

        JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
        proxyFactory.setServiceClass(VimPortType.class);
        proxyFactory.setAddress(url);
        VimPortType vimPort = (VimPortType) proxyFactory.create();
3. Enable session management
Because of the way you login to the VMware vSphere Web Services it is necessary to maintain a session. To enable session management for the CXF client you need to add the following code.

        ((BindingProvider) vimPort).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
4. The client should be able to follow redirects to support httpsWithRedirect
        Client client = ClientProxy.getClient(vimPort);

        HTTP…

Getting Broadcom 43xx to work with openSUSE 11.3

It is very simple to get this to work.

If you want to make sure you have the right device you can run as root:

hostname:~ # lspci | grep BCM43
0c:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)The outcome shows that my device is a BCM4311.

Here is what you have to run:
hostname:~ #suhostname:~ #install_bcm43xx_firmwarehostname:~ #init 6 <----to restart