}
XFireHelper xFireHelper = new XFireHelper();
// test WS1
WS1 ws1Proxy = (WS1) xFireHelper.createClientProxy(xFireHelper.createServiceWS1(), args[0]);
System.out.println(ws1Proxy.getBeanA());
System.out.println(ws1Proxy.getBeanB());
System.out.println(ws1Proxy.getBean("a"));
System.out.println(ws1Proxy.getBean("b"));
System.out.println(ws1Proxy.getBean("c"));
System.out.println(ws1Proxy.getRootBean("a"));
System.out.println(ws1Proxy.getRootBean("b"));
System.out.println(ws1Proxy.getRootBean("c"));
try
{
ws1Proxy.throwException(false);
}
catch (WS1Exception e)
{
System.out.println(e);
}
catch (Throwable t)
{
System.out.println();
t.printStackTrace(System.out);
System.out.println();
}
try
{
ws1Proxy.throwException(true);
}
catch (WS1Exception e)
{
System.out.println(e);
}