[MOBY-dev] Service registration from XML
wasser
hao.chen at uni-bielefeld.de
Wed May 7 08:22:06 UTC 2008
Hi, Eddie,
Here is the XML file named TestXMLReg.xml I used.
<registerService>
<Category>moby</Category>
<serviceName>TestXMLReg</serviceName>
<serviceType>Testing</serviceType>
<serviceLSID/>
<authURI>www.techfak.uni-bielefeld.de</authURI>
<signatureURL/>
<URL>http://localhost:8080/axis/services/TestXMLReg</URL>
<contactEmail>webmaster at uni-bielefeld.de</contactEmail>
<authoritativeService>1</authoritativeService>
<Description>a test service.</Description>
<Input>
<Simple articleName="SequenceML">
<objectType>SequenceML</objectType>
</Simple>
</Input>
<secondaryArticles>
<Parameter articleName="Name">
<datatype>String</datatype>
<description/>
</Parameter>
<Parameter articleName="star">
<datatype>Integer</datatype>
<description/>
<default>0</default>
<max>25</max>
<min>0</min>
<enum/>
</Parameter>
<Parameter articleName="isEmpty">
<datatype>Boolean</datatype>
<description/>
<default>false</default>
</Parameter>
</secondaryArticles>
<Output>
<Simple articleName="FASTA_Text">
<objectType>FASTA_Text</objectType>
</Simple>
</Output>
</registerService>
and I write following code to generate XML String within a try block
String regXML="";
BufferedReader in = new BufferedReader(new InputStreamReader(new
FileInputStream("//home//wasser//workspace//TestXMLReg.xml")));
String str="";
while((str=in.readLine())!=null){
regXML+=str;}
cheers
hao chen
On Tue, 2008-05-06 at 20:51 -0700, Edward Kawas wrote:
> Can you post the XML or send it to the list as an attachment?
>
> Thanks,
>
> Eddie
>
> -----Original Message-----
> From: moby-dev-bounces at lists.open-bio.org
> [mailto:moby-dev-bounces at lists.open-bio.org] On Behalf Of wasser
> Sent: May-06-08 2:00 PM
> To: Core developer announcements
> Subject: [MOBY-dev] Service registration from XML
>
> hi, all
>
> Now I want to register service from XML file with jmoby. and I use the
> existing method registerService(), which can receive xmlString as
> Parameter. Here is part of my code.
>
> RegistryImpl register =new RegistryImpl();
> register.registerService(smlString);
>
> but it seems not to work. I am sure that the smlString I used is
> correct, because I can register the same one using Dashboard without nay
> problem. Did I do something wrong?
>
> cheers,
> hao chen
>
>
>
>
>
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
More information about the MOBY-dev
mailing list