[MOBY-dev] Registering a MOBY service

Martin Senger martin.senger at gmail.com
Thu Sep 28 12:02:36 UTC 2006


Mark, Eddie,
   I think there is a bug (also) in Central in XML escaping.

   Javier found that he was not able to register a service with a URL
containing ampersand. I replied:

it may be that the dashboard does not properly escape it in the registration
> request
>

and, indeed, it is true. Today, I have fixed it in Dashboard (actually in
CentralImpl.java) but found that it seems to be a double-error. Also the
Central does not properly escape XML characters.

This is my registration request:

<registerService><Category>moby</Category><serviceName>HelloBiomobyWorld_TMP_4</serviceName><serviceType>Testing</serviceType><serviceLSID></serviceLSID><authURI>
samples.jmoby.net</authURI><signatureURL></signatureURL><URL>
http://mobycentral.icapture.ubc.ca:8090/axis/services/HelloBiomobyWorld?abc=def&amp;yes=no
</URL><contactEmail>martin.senger at gmail.com</contactEmail><authoritativeService>1</authoritativeService><Description><![CDATA[Yes,
you can unregister this service anytime...]]></Description><Input>
<Simple articleName="Object">
<objectType>Object</objectType>
</Simple>
</Input>
<secondaryArticles>
</secondaryArticles>
<Output>
</Output>
</registerService>

(you may noticed that the URL has now a properly escaped ampersand). The
service was registered successfully - but when I asked for it (findService)
I got back this:

<Services>
        <Service authURI='samples.jmoby.net'
serviceName='HelloBiomobyWorld_TMP_4' lsid='urn:lsid:
biomoby.org:serviceinstance:samples.jmoby.net
,HelloBiomobyWorld_TMP_4:2006-09-28T11-52-07Z'>
        <serviceType lsid='urn:lsid:
biomoby.org:servicetype:Testing:2006-02-25T12-49-15Z'>Testing</serviceType>
        <authoritative>1</authoritative>
        <Category>moby</Category>
        <Description><![CDATA[Yes, you can unregister this service
anytime...]]></Description>
        <contactEmail>martin.senger at gmail.com</contactEmail>
        <signatureURL></signatureURL>
        <URL>
http://mobycentral.icapture.ubc.ca:8090/axis/services/HelloBiomobyWorld?abc=def&yes=no
</URL>
        <Input>
                <Simple articleName='Object'>
                        <objectType lsid='urn:lsid:
biomoby.org:objectclass:Object:2001-09-21T16-00-00Z'>Object</objectType>
                </Simple>
        </Input>
        <Output>
        </Output>
        <secondaryArticles>
                </secondaryArticles>
        </Service>

</Services>

(you may notice that here the URL has wrongly an un-escaped ampersand).

Cheers,
Martin


-- 
Martin Senger
   email: martin.senger at gmail.com
   skype: martinsenger



More information about the MOBY-dev mailing list