197198199200201202203204205206207
} else { WSIFMessage fault = invoker.getFault(); logger.info("fault: " + fault); } service.shutdownServer(); } /** * This is a sample. It doesn't work now. *
5455565758596061626364
JythonRunner runner = new JythonRunner(); runner.run(jythonString, arguments); runner.run(jythonString, arguments); adder.shutdownServer(); multiplier.shutdownServer(); } }
5253545556575859606162
String[] arguments = new String[] { "-Adder_add_wsdl", adderWSDLLoc }; JythonRunner runner = new JythonRunner(); runner.run(jythonString, arguments); service.shutdownServer(); } /** * @throws IOException * @throws XBayaException
8283848586878889909192
adderWSDLLoc, "-Multiplier_multiply_wsdl", multiplierWSDLLoc }; JythonRunner runner = new JythonRunner(); runner.run(jythonString, arguments); adder.shutdownServer(); multiplier.shutdownServer(); } /** * @throws IOException
fail(); } catch (Exception e) { // It succeeds only once. } adder.shutdownServer(); multiplier.shutdownServer(); } } /*
4647484950515253545556
invoker.invoke(); Object output = invoker.getOutput("z"); logger.info("z = " + output); service.shutdownServer(); } /** * @throws XBayaException */
99100101102103104105106107108109
multiplierInvoker.invoke(); Object output3 = multiplierInvoker.getOutput("z"); logger.info("output3 = " + output3); adder.shutdownServer(); multiplier.shutdownServer(); } } /*