Package flex.messaging.services.http

Examples of flex.messaging.services.http.SOAPProxyAdapter


        destination.setDefaultUrl("http://{server.name}:{server.port}/myapp/echo?wsdl");
        destination.addDynamicUrl("http://{server.name}:/myapp/echo");

        String adapterId = "soap-proxy";
        SOAPProxyAdapter adapter = (SOAPProxyAdapter)destination.createAdapter(adapterId);
        addProperties(adapter);
    }
View Full Code Here


     */
    private void createAdapter(HTTPProxyDestination proxyDest)
    {
        // Create an adapter for the destination
        SOAPProxyAdapter proxyAdapter = new SOAPProxyAdapter();
      
        // Set adapter's id
        proxyAdapter.setId("runtime-soap-proxy");
      
        // Set adapter's management property
        proxyAdapter.setManaged(true);
      
        // Set adapter's parent (which also sets destination's adapter)
        //proxyAdapter.setDestination(proxyDest);
      
        // Alternatively, we could have set destination's adapter
        proxyDest.setAdapter(proxyAdapter);
      
        // Set some adapter properties
        proxyAdapter.setAllowLaxSSL(true);
      
        int maxTotal = 100;
        int defaultMaxConnsPerHost = 2;
        HTTPConnectionManagerSettings connectionParams = new HTTPConnectionManagerSettings();
        connectionParams.setMaxTotalConnections(maxTotal);
        connectionParams.setDefaultMaxConnectionsPerHost(defaultMaxConnsPerHost);  
      
        proxyAdapter.setConnectionManagerSettings(connectionParams);
    }    
View Full Code Here

TOP

Related Classes of flex.messaging.services.http.SOAPProxyAdapter

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.