[MISC] Re: [MOBY-l] How to debug multi-parameter services

Mark Wilkinson markw at illuminae.com
Thu Apr 1 21:29:38 UTC 2004


Okay, it should be working properly now.  The
MOBY::Client::Service->execute method takes the following arguments:

->execute(XMLinputlist => \@invocations)

where:

@invocations = (\@inputs1, \@inputs2, \@inputs3)

@inputs1 = ($name_a,$Object_a,   $name_b,$Object-b,...)
or
@inputs1 = ($name_a,\@Collect_a,    $name_b,\@Collect-b)

@Collect_a = ($Object_a, $Object_b, $Object_c)   


So... The way to pass multiple Simple articles as arguments to a single
invocation of a service (i.e. a service that takes more than one input
per invocation) is to call the MOBY::Client::Service->execute method as
follows:

->execute(XMLinputlist => 
	[
	[
	 'thing1', '<Object ns= id=/>',
	 'thing2', '<Object ns= id=/>',
	 'thing3', '<Object ns= id=/>'
	]
	]
 
I just tested that and it seems to work, however if anyone notices that
there is still a bug please let me know ASAP!

Sorry for being so slow...

Mark

-- 
Mark Wilkinson (mwilkinson at mrl.ubc.ca)
University of British Columbia iCAPTURE Centre



More information about the moby-l mailing list