webservice以及线程运用2
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;
}
/**
* 初始化客户端
*
* @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;
}