Create() public method

Creates a new proxy with the specified URL. The returned object is a proxy with the interface specified by api. string url = "http://localhost:8080/ejb/hello"); HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
public Create ( Type type, string strUrl ) : Object
type System.Type the interface the proxy class needs to implement
strUrl string the URL where the client object is located
return Object
Esempio n. 1
0
        public static void testBurlap()
        {
            CBurlapProxyFactory factory = new CBurlapProxyFactory();

            String url = "http://www.caucho.com/burlap/test/basic";

            try
            {

                Basic test = (Basic)factory.Create(typeof (Basic), url);
                Console.WriteLine(test.hello());

                Console.ReadLine();

            }
            catch(Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.ReadLine();
            }
        }