public BeanInvocation sayHello ( String message ) { BeanInvocation invocation = new BeanInvocation ( ) ; try { invocation . setMethod ( HelloService . class . getMethod ( "sayHello" , String . class ) ) ; invocation . setArgs ( new Object [ ] { message } ) ; } catch ( NoSuchMethodException e ) { throw new CitrusRuntimeException ( "Failed to access remote service method" , e ) ; } return invocation ; }
Creates bean invocation for hello service call .