Hello all,
Based on Wendy's recommendation, I have moved on to
UniSubroutine as my vehicle for extracting XML reports
from UniVerse. When I run the code below, I get a
"UniSubroutineException: Wrong number of arguments
supplied to the subroutine" when I execute
getServicePopulation.call(). The subroutine takes two
arguments: the XML string to be returned by the
routine, and the service for which I want the
population. SERVICE.POPULATION runs from within
UniVerse and does indeed expect 2 args.
Any ideas? Code below.
Rick
//UniSubroutine test
UniSubroutine getServicePopulation =
uSession.subroutine("SERVICE.POPULATION",2);
System.out.println("Number of arguments = " +
getServicePopulation.getNumArgs());
getServicePopulation.setArg(0,"testText");
getServicePopulation.setArg(1,"ES");
System.out.println("Subroutine set up,
routine name = " +
getServicePopulation.getRoutineName());
System.out.println("Calling subroutine...");
getServicePopulation.call();
System.out.println("Subroutine finished...
");
System.out.println("Subroutine: Arg0 = " +
getServicePopulation.getArg(0));
System.out.println(" Arg1 = " +
getServicePopulation.getArg(1));
System.out.println("Results displayed,
resetting args...");
getServicePopulation.resetArgs();
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/