[MOBY-dev] jMoby: method that parses service xml and returns MobyService object

Paul Gordon gordonp at ucalgary.ca
Fri Nov 18 20:29:44 UTC 2005


If some one wants to implement moby central in Java, this would be very 
handy.  To prepare for that eventuality, perhaps you could write this as 
a static method in a new server utility class, say 
org.biomoby.registry.requestParser or something of the like.

>Do you think that it is a useful method for me to create? I have my own use
>for it, but do you think that others would find it useful?
> Thanks,
> Eddie
>
> On 11/18/05, Paul Gordon <gordonp at ucalgary.ca> wrote:
>  
>
>>I am stupid. Time to go home for the weekend. :-)
>>I don't think the method you are looking for exists in Java yet.
>>
>>    
>>
>>>CentralImpl.findService() obviously parses the XML at some point to
>>>give you the service object.
>>>Ah, yes. MobyServices[] CentralImpl.extractServices(String)
>>>
>>>      
>>>
>>>>I was unable to find a method that parses xml similar to the
>>>>registerService
>>>>(http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Docs/MOBY
>>>>-S_API/XMLPayloads.html) xml and returns a MobyService
>>>>object.
>>>>
>>>>I did notice the method in CentralImpl called
>>>>extractServices(string) but the it parses a different
>>>>message structure than the registerService xml.
>>>>
>>>>Does anyone know of a method that does what I need?
>>>>
>>>>Thanks,
>>>>
>>>>Eddie
>>>>
>>>>_______________________________________________
>>>>MOBY-dev mailing list
>>>>MOBY-dev at biomoby.org
>>>>http://www.biomoby.org/mailman/listinfo/moby-dev
>>>>
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>MOBY-dev mailing list
>>>MOBY-dev at biomoby.org
>>>http://www.biomoby.org/mailman/listinfo/moby-dev
>>>      
>>>
>>_______________________________________________
>>MOBY-dev mailing list
>>MOBY-dev at biomoby.org
>>http://www.biomoby.org/mailman/listinfo/moby-dev
>>
>>    
>>
>
>_______________________________________________
>MOBY-dev mailing list
>MOBY-dev at biomoby.org
>http://www.biomoby.org/mailman/listinfo/moby-dev
>  
>




More information about the MOBY-dev mailing list