[MOBY-l] Service Instances
mikedebo at gmail.com
Fri Aug 17 10:28:44 EDT 2007
On 17-Aug-07, at 7:21 AM, Michael DiBernardo wrote:
> On 17-Aug-07, at 2:08 AM, maliha aziz wrote:
>> Hi Andreas
>> I actually need the service name its inputs as well as outputs ...
>> I looked at the org.biomoby.shared.Central the maximum i could see
>> was this function that could be of some use
>> Get a list of all authorities - and for each of them a
>> list of their registered service names.
> This is a gotcha in the API that tripped me up at first. If you
> just use the Central interface, you can only fetch the _names_ of
> the services. You then have to make a call to findServiceByName for
> each service to populate the other fields of each service interface.
> Alternately, you can use CentralDigestImpl directly and call
> getServices(). That will fetch you the inputs and outputs as well,
> but it still leaves some fields in each MobyService unpopulated.
A minor correction: There is an interface that specifies the
getServices() call, it isn't just thrown into one of the
implementation classes, as I implied here.
More information about the moby-l