webservice以及线程应用2

/**
     * 初始化客户端
     *
     * @return
     */
    public static Client initClient(String url)
    {
        Client client = null;
        try
        {
            client = new Client(new URL(url));
        }
        catch (MalformedURLException e)
        {
            logger.error("The webservice url for PLS is malformed.", e);
        }
        catch (Exception e)
        {
            logger.error("Exception occur when Init webservice client.", e);
        }
        return client;
    }

猜你喜欢

转载自sunxuecheng.iteye.com/blog/1178927